摘要: 来自:http://blog.sina.com.cn/s/blog_8a0c4f130100zaw2.html先谈谈in和exists的区别:exists:存在,后面一般都是子查询,当子查询返回行数时,exists返回true。select * from class where exists (se... 阅读全文
posted @ 2015-05-08 14:07 醉意人间 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 来自:http://www.cnblogs.com/pcjim/articles/799302.htmlleft join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) ... 阅读全文
posted @ 2015-05-08 08:56 醉意人间 阅读(168) 评论(0) 推荐(0) 编辑