随笔分类 -  SQLSEVER

database
摘要:"https://canbefree.github.io/" 阅读全文
posted @ 2016-11-01 10:55 UCanBeFree 阅读(132) 评论(0) 推荐(0)
摘要:in 和exists的用法差不多.但是in条件不能有外部条件,如:select *from rp_001 A where exists (select years from RepOrt B where A.repid=20)select *From rp_001 A join RepOrt on A.repid=20;exists 不会筛选出report的数据而join会与report自然连接。 阅读全文
posted @ 2014-01-09 16:49 UCanBeFree 阅读(303) 评论(0) 推荐(0)