Search the Whole World Here.,.,

SQL - SELECT INTO Syntax




We can copy all columns into the new table:

SELECT *
INTO newtable [IN externaldb]
FROM table1;
Or we can copy only the columns we want into the new table:

SELECT column_name(s)
INTO newtable [IN externaldb]
FROM table1;
The new table will be created with the column-names and types as defined in the SELECT statement. You can apply new names using the AS clause.

Ads by Google