Answers for "sql declare and select in one line"

SQL
0

sql declare variable single line

-- Old clunky way of doing things prior to SQL Server 2008
DECLARE @myVar VARCHAR(100);
SET @myVar = 'Some Value';

-- New, amazing way of declaring variables
DECLARE @myVar VARCHAR(100) = 'Some Value';
Posted by: Guest on June-25-2020

Code answers related to "sql declare and select in one line"

Code answers related to "SQL"

Browse Popular Code Answers by Language