7
CTE和临时表之间有什么区别?
公用表表达式(CTE)和临时表之间有什么区别?我什么时候应该使用另一个? CTE WITH cte (Column1, Column2, Column3) AS ( SELECT Column1, Column2, Column3 FROM SomeTable ) SELECT * FROM cte 临时表 SELECT Column1, Column2, Column3 INTO #tmpTable FROM SomeTable SELECT * FROM #tmpTable
174
sql-server
cte