![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql学习
学习记录分享
陌上花开D
业精于勤而荒于嬉,一个有点追求的产品经理
展开
-
MySQL执行多表联查时,报错ln aggregated query without GROUP BY
问题:mysql5.7,执行sql语句报错:In aggregated query without GROUP BY, expression #2of SELECT list contains nonaggregated column 'department_id'; this is incompatible with sql_mode=only_full_group_by解决办法:①通过navicat,新建查询窗口,输入select @@global.sql_mode来查看当前数据库的sql_m.原创 2020-05-29 23:35:47 · 2193 阅读 · 0 评论 -
mysql常用查询语句
一、当前学习MySQL,所查询语句基于myemployees数据库,库中包含四张表'employees'、'departments'、'jobs'、'locations',如下所示:1、like模糊查询# 查询姓中有'a'的人员信息;select * from employees where first_name like '%a%'; 查询结果:(截图为部分记录)②like结合转义字符使用,直接用’\‘或使用'escape';select las...原创 2020-05-29 12:01:53 · 640 阅读 · 0 评论