摘要:
1.一般是加一个<if>标签,但是只能是参数,如果是想查出来的某个字段不为空的话,不太好用, 今天看到一个巧妙的写法 select t1.name,t1.work,t2.type from t1,t2 where t.name=t2.name and (t2.date is null or t1.p 阅读全文
摘要:
报错:1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated c 错误代码1055 原因 select子句中包含GROUP BY子句中没有的列,并且没有使用聚合函数,并且sql_mo 阅读全文