Question: mssql must declare the table variable?
Answer: Syntax. If we want to declare a table variable, we have to start the DECLARE statement which is similar to local variables. The name of the local variable must start with at(@) sign. ... After the TABLE keyword, we have to define column names and datatypes of the table variable in SQL Server.