摘要:
小燕子,哈哈哈哈~~~~~~~~~~ 相关子查询是指引用了外部查询列的子查询,即子查询会对外部查询的每行进行一次计算。 举个例子 使用相关子查询 分析下这个sql: select * from test1 a where 2 > (select count(*) from test1 where c 阅读全文
摘要:
之前用的是mysql 5.6版本,执行select * from table group by colunm 是可以出结果的, 但是切换的5.7版本,这条sql就报错, Expression #1 of ORDER BY clause is not in GROUP BY clause and co 阅读全文