SQL Tutorial - Learn SQL




SQL Tutorial
SQL Cheat Sheet
SQL Database Table
SQL SELECT
SQL SELECT INTO
SQL DISTINCT
SQL WHERE
SQL LIKE
SQL INSERT INTO
SQL UPDATE
SQL DELETE
SQL ORDER BY
SQL OR & AND
SQL IN
SQL BETWEEN
SQL Aliases
SQL COUNT
SQL MAX
SQL MIN
SQL AVG
SQL SUM
SQL GROUP BY
SQL HAVING
SQL JOIN
SQL Training
SQL Server
SQL Hosting
SQL Replication
ETL - Extract, Transform, and Load


SQL SELECT INTO

The SQL SELECT INTO statement is used to select data from a SQL database table and to insert it to a different table at the same time.

The general SQL SELECT INTO syntax looks like this:


SELECT Column1, Column2, Column3,
INTO Table2
FROM Table1

The list of column names after the SQL SELECT command determines which columns will be copied, and the table name after the SQL INTO keyword specifies to which table to copy those rows.

If we want to make an exact copy of the data in our Customers table, we need the following SQL SELECT INTO statement:


SELECT *
INTO Customers_copy
FROM Customers



ASP Hosting




If you want to contact us please email to
contact @ sql-tutorial.net


Link to SQL Tutorial


Bookmark SQL Tutorial


Copyright


Disclaimer



  © Art Branch Inc. 2004