铁将军摩托车防盗器怎样才能免匙驾驶?

全部回答1
默认 最新
  • select * from LOVERA where phone not in(select phone from LOVERB) union select * from LOVERB where phone not in(select phone from LOVERA) 这语句能列出两表不同的条目,但想了很久也想不到怎样才能分别列出两张表不同的条目,我的思路是分别在两表中查出不同的条目 即(A表有B表没有和B表有A表没有两语句),然后用union将两结果结合起来! 下一句是: select 它们不同的条目个数分别为=count(*) from LOVERA where phone not in(select phone from LOVERB) union select count(*) from LOVERB where phone not in(select phone from LOVERA) 第二句也是差不多的情况,但这是不同的记录数,所以只有两个数据,这样就不难区分了! 楼主如果想到了解决办法也请告知一下我,大家共同学习! select * from LOVERA where phone not in(select phone from LOVERB) union select * from LOVERB where phone not in(select phone from LOVERA) 这语句能列出两表不同的条目,但想了很久也想不到怎样才能分别列出两张表不同的条目,我的思路是分别在两表中查出不同的条目 即(A表有B表没有和B表有A表没有两语句),然后用union将两结果结合起来! 下一句是: select 它们不同的条目个数分别为=count(*) from LOVERA where phone not in(select phone from LOVERB) union select count(*) from LOVERB where phone not in(select phone from LOVERA) 第二句也是差不多的情况,但这是不同的记录数,所以只有两个数据,这样就不难区分了! 楼主如果想到了解决办法也请告知一下我,大家共同学习!
    0 点赞

没有更多内容了

返回顶部
产品求购 求购