Answers for "insert into temp table from select query in sql server"

SQL
2

create and insert into temp table

IF(@Debug = 1)
    BEGIN

        --TempTables for Testing
        CREATE TABLE #_TempTable
        (
        FIRST       INT, 
         SECOND  INT,          
        );
        INSERT INTO  #_TempTable
               SELECT @FIRST, 
			          @SECOND
					  SELECT * FROM #_TempTable
	END;
Posted by: Guest on April-02-2020
0

sql set data from a select query to a temp table and insert

SELECT * INTO #TempTable
FROM OriginalTable
Posted by: Guest on August-03-2021

Code answers related to "insert into temp table from select query in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language