Table Variables in Azure Data Warehouse
问题 In a SQL Server database, one can use table variables like this: declare @table as table (a int) In an Azure Data Warehouse, that throws an error. Parse error at line: 1, column: 19: Incorrect syntax near 'table' In an Azure Data Warehouse, you can use temporary tables: create table #table (a int) but not inside functions. Msg 2772, Level 16, State 1, Line 6 Cannot access temporary tables from within a function. This document from Microsoft says, ◦Must be declared in two steps (rather than