雪洗中关村

导航

有用的sql语句积累

⑴.  sql查询未被外键关联的数据
    select * from bb b where not exists (select 1 from aa a where a.bid=b.bid)

posted on 2018-05-29 09:26  雪洗中关村  阅读(132)  评论(0)    收藏  举报