摘要: 下面是CTE的语法:[ WITH <common_table_expression> [ ,n ] ]<common_table_expression>::= expression_name [ ( column_name [ ,n ] ) ] AS ( CTE_query_definition ) 现在使用CTE来解决上面的问题,SQL语句如下:withcr as( select CountryRegionCode from person.CountryRegion where Name like 'C%')select * from person.S 阅读全文
posted @ 2012-06-05 11:24 赤狐(zcm123) 阅读(426) 评论(0) 推荐(1) 编辑