Mysql点滴

统计函数的参数不能使用别名,如 sum(A+B) select 0 = 0000-00-00; //结果为1(true),也就是说全0的日期等价于0, php中也成立,且empty(0)为true select (@count:[email protected]+1) rowid from (select (@count:=0)) A; //其中A和:=都是必须的,否则会报错 select * f
相关文章
相关标签/搜索