I am converting SQL from Teradata to SQL Server
in teradata, they have the format
SELECT col1, col2 FROM table1 INTO @variable1, @variable2
In SQL Server, I found
SET @variable1 = ( SELECT col1 FROM table1 );
This allows you to use only one column / variable for each statement. How to assign 2 or more variables with a single SELECT statement?
sql sql-server teradata
ala Aug 27 '09 at 12:31 2009-08-27 12:31
source share