Viewing 3 posts - 1 through 3 (of 3 total)
It basically creates a new table with the data from a another table. See example
USE AdventureWorks
GO
----Create new table and insert into table using SELECT INSERT
SELECT FirstName, LastName
INTO TestTable
FROM Person.Contact
WHERE EmailPromotion...
July 22, 2011 at 1:48 pm
Check this link for an explanation
SELECT INTO
This method is used when table is not created earlier and needs to be created when data from one table is...
July 22, 2011 at 1:47 pm
Hi,
Try this and let me know if it works;
,Test1<ctrl>
,Test2<ctrl>
IF OBJECT_ID('tempdb..#TEMP') IS NOT NULL
DROP TABLE #TEMP
CREATE TABLE #TEMP
(
...
July 17, 2011 at 9:21 pm
Viewing 3 posts - 1 through 3 (of 3 total)