查找表里面不一样的数据sql语句

数据库两个关联的,不同的表,找出两个表里面没有对应的数据:数据库 select  * from A  a  where a.id not in(selsect b.id from B b)      //a表里面id 和b表里面id对应select 数据库里面一张表里面查找重复的数据:统计 select  *  from A  group by name having count (name)>1
相关文章
相关标签/搜索