3
如何在检查MySQL中的条件时比较多个表?如何比较mysql查询中的条件multile表?
检查表1
--------------------------
date | Cheque_no
--------------------------
10/10/2015 | 09876543
--------------------------
17/10/2015 | 45678990
--------------------------
付款表2
----------------------------------------
date | Cheque_no | Amount_Paid
----------------------------------------
10/10/2015 | 09876543 | 1000
----------------------------------------
,我使用下面的查询:
select * from Cheque,Payment where Cheque.Cheque_no != Payment .Cheque_no
我期待的输出为
17/10/2015 | 45678990
'选择一些东西从什么地方LEFT JOIN其他地方的东西=东西别的地方别的东西NULL' – Strawberry