back up codes

always have a backup of your code

sql SELECT INTO

The SELECT INTO statement is used to create copies of tables as a backup.
This statement selects data from one table and inserts it into a different table.

SQL SELECT INTO Syntax

Syntax in selecting all columns into new table:

SELECT * INTO myNewTable [IN myExternalDatabse]
FROM myOldTable

Syntax in selecting specific columns into new table:

SELECT myColumn(s) INTO myNewTable [IN myExternalDatabse]
FROM myOldTable

Single Post Navigation

One thought on “sql SELECT INTO

  1. edward on said:

    Very helpful post. Thanks a lot.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.