not exists if not exists


not exists if not exists

文章插圖
大家好,小跳來為大家解答以上的問題 。if not exists , not exists這個很多人還不知道,現在讓我們一起來看看吧!
1、以select * from A where exists(select * from B where A.a=B.a)為例,exists表示,對于A中的每一個記錄,如果,在表B中有記錄,其屬性a的值與表A這個記錄的屬性a的值相同,則表A的這個記錄是符合條件的記錄, 如果是NOT exists,則表示如果表B中沒有記錄能與表A這個記錄連接,則表A的這個記錄是符合條件的記錄 。
【not exists if not exists】本文到此分享完畢 , 希望對大家有所幫助 。