摘要: 1,查询存在一个表,而不在另一个表中的数据记录 select * from A where not exists(select 1 from B where A.ID=B.ID) 2,hhere 和 having 涉及到对分组结果集的过滤操作,都用having,having子句中可以直接使用聚合函数 阅读全文
posted @ 2018-10-22 17:49 Uhey 阅读(119) 评论(0) 推荐(0) 编辑