declaring variables from table sql code example
Example 1: sql declare table variable
DECLARE @TABLE TABLE( COL1 INT, COL2 VARCHAR(30))
Example 2: how to declare a variable in sql
DECLARE @COURSE_ID AS INT, @COURSE_NAME VARCHAR (10);
DECLARE @TABLE TABLE( COL1 INT, COL2 VARCHAR(30))
DECLARE @COURSE_ID AS INT, @COURSE_NAME VARCHAR (10);