摘要:
多表查询 将多张表拼接起来之后做操作 select * from dep,emp; 将dep,empty两张表做笛卡尔积 涉及到多个表字段书写的时候应尽量加上该字段的表名 select * from emp,dep where dep.id=emp.dep_id and dep.name='技术' 阅读全文
摘要:
查询关键字group by(分组) select * from emp group by post; 将表emp的内容按post分组 想要实现上述的校验机制需要设置严格模式 set global sql_mode = 'strict_trans_table,only_full_group_by'; 阅读全文