2018年9月19日

sql查询:存在A表而不在B表中的数据

摘要: A、B两表,找出ID字段中,存在A表,但是不存在B表的数据。 方法一:使用 not inselect distinct A.ID from A where A.ID not in (select ID from B) 方法二:使用 left join...on... , "B.ID isnull" 阅读全文

posted @ 2018-09-19 11:56 kingofyz 阅读(31297) 评论(1) 推荐(6)

导航