declare temp table variable in sql code example Example: create temp table in sql -- CREATE TEMP TABLE Create Table #MyTempTable ( EmployeeID int );