摘要:
下面是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 阅读全文