SQL语句中EXISTS的用法

SQL萌新一个,在这里记录一下自学过程当中遇到的问题。 exists:强调的是,是否有返回集,不须要知道具体返回的是什么 好比这两个表: 输入查询语句: select * from customer c where not exists( select * from customer_goods cg where cg.customer_id = 1) 返回结果为空。 也就是说,exists后面的
相关文章
相关标签/搜索