摘要: csdn:http://hi.csdn.net/htl258 阅读全文
posted @ 2011-04-09 21:43 Shikyoh 阅读(250) 评论(0) 推荐(0)
摘要: 我们知道有个 SQL Server 2000 中有个 cross join 是用于交叉联接的。实际上增加 cross apply 和 outer apply 是用于交叉联接表值函数(返回表结果集的函数)的, 更重要的是这个函数的参数是另一个表中的字段。这个解释可能有些含混不请,请看下面的例子: -- 1. cross join 联接两个表select * from TABLE_1 as T1cross join TABLE_2 as T2-- 2. cross join 联接表和表值函数,表值函数的参数是个“常量”select * from TABLE_1 T1cross join FN_Ta 阅读全文
posted @ 2011-04-09 21:37 Shikyoh 阅读(1297) 评论(0) 推荐(0)