问题描述: select * from users where user_name ='user_01' 跟 select * from users where user_name ='uSer_01',select * from users where user_name ='uSEr_01' 等等的查询结果一样,我们发现只是查询的字母大小写不一样,但是查询结果却相同. 这是mysql 默认设置,只要加入 binary 就可以解决这个问题 select * from users where b
--内连接--select t.*,b.bumenmc from T_HQ_RYXX t,t_hq_bm b where t.bum = b.bumenbm--select * from t_hq_ryxx t join t_hq_bm b on t.bum in b.bumenbm --自连接--select * from t_hq_ryxx a,t_hq_ryxx b where a.bum in b.bum and a.xingb = 2; --左连接--select * from t_h
select task_id,state,createymd,from_unixtime(createtime) "创建时间",manager_name,open_state,hosted_amount,hosted_date,hosted_time,hosted, is_deal,deal_amout,order_mode,order_stype,order_id,manager_id,from_unixtime(close_time) "关闭时间" from h
本次讲的查询方法主要有:表达式查询,模糊查询,between语句,in语句,区间查询,统计数据,普通方式查询,但大多数都只是引入数组而已,明白了第一个,其他的也就差不多全明白了,唯一要注意的是在后台中notlike中间没空格,而not in,not between中间必须有空格才能有效,不要与后面的前台标签搞混了,话不多说,直接上代码 public function showone(){ echo "欢迎你".$_GET['name'];//在页面上直接就可以Index/show/na