费马引理的证明过程:在SQL中如何对两个不同的表进行比较

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/30 08:31:16
我想将两个不同的表进行比对,然后选出不同的记录,SQL语句应该怎么编写。
例:Table1 id name riqi
1 oo 5-21
2 cc 5-22
Table2 id name didian
1 oo sh
结果显示的纪录为
Table1 id name riqi
2 cc 5-22
希望大家帮帮忙啊,谢谢

select * from table1 inner join table2 on table1.id <> table2.id

select A.id,A.name,A.riqi from Table1 as A,Table2 as B where A.id<>B.id

select * from table1 where not exists(select * from table2 where table1.id=table2.id)

何为不同?id不同?name不同??或者其他?