SQL語句中EXISTS的用法

SQL萌新一個,在這裏記錄一下自學過程當中遇到的問題。 exists:強調的是,是否有返回集,不須要知道具體返回的是什麼 好比這兩個表: 輸入查詢語句: select * from customer c where not exists( select * from customer_goods cg where cg.customer_id = 1) 返回結果爲空。 也就是說,exists後面的
相關文章
相關標籤/搜索