SELECT INTO

SQL SELECT INTO Keyword

The SELECT INTO command is used to copy data from one table into a new table. This is useful for creating backup copies or for transferring data to another table.

Tutorials dojo strip

SQL SELECT INTO Syntax

SQL

SQL SELECT INTO All Columns Example

SQL

Note: This code does not work in TechKubo playground (SQLite). In SQLite, use CREATE TABLE AS SELECT instead.

SQL CREATE TABLE AS SELECT Equivalent Example

This query creates a backup of all records from Patients into a new table PatientsBackup.

SQL

SQL SELECT INTO with Condition Example

This query creates a backup table of patients who are female.

SQL

SQL SELECT INTO from Multiple Tables Syntax

SQL

SQL SELECT INTO from Multiple Tables Example

SQL

SQL SELECT INTO Labs

Tutorials dojo strip