I\'m trying to create a table variable with primary key. What is the difference between these two statements? Why the first one does not work?
--This does not wo
There are differences in the syntax between the CREATE TABLE (Transact-SQL) and DECLARE @local_variable (Transact-SQL) used in creating table variables. You can not use the syntax of the first statement to create a variable table.