Search
 
SCRIPT & CODE EXAMPLE
 

SQL

into sql

#The SELECT INTO statement selects data from one table and inserts it into a different table. 
#The SELECT INTO statement is most often used to create backup copies of tables. 
syntax->SELECT *
INTO new_table_name [IN externaldatabase]
FROM old_tablename 
///example///
SELECT *
INTO Persons_Backup
FROM Persons 
Comment

into operator in sql

-- INTO copies specified columns into a new table
SELECT *
INTO newtable [IN externaldb]
FROM oldtable
WHERE condition;

SELECT column1, column2, column3
INTO newtable [IN externaldb]
FROM oldtable
WHERE condition;

Eg: SELECT * INTO CustomersBackup
	FROM Customers;
    
    SELECT * INTO CustomersBackup IN 'Backup.mdb'
	FROM Customers;
    
    SELECT CustomerName, ContactName INTO CustomersBackup2017
	FROM Customers;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql quary intervewi question 
Sql :: learn sql 
Sql :: select only columns that are not empty oracle sql 
Sql :: drop a field in psql django 
Sql :: Oracle cx_Oracle example 
Sql :: postgres advance table id count 
Sql :: sql date between one week 
Sql :: oracle list partitions 
Sql :: parent child hierarchy in sql 
Sql :: sql subquery 
Sql :: foreign key sql 
Sql :: remove duplicates mysql 
Sql :: oracle tablespace autoextend 
Sql :: test database for sql 
Sql :: postgres execute multiple sql file from command line 
Sql :: group by 
Sql :: install mssql on ubuntu 
Sql :: mysql null 
Sql :: mysql ddl 
Sql :: doctors appointment 
Sql :: select * from 
Sql :: oracle multiple insert 
Sql :: indexing in mysql 
Sql :: select where sql 
Sql :: pl sql revoke role from user 
Sql :: swiftui onappear only once 
Sql :: how to set up an anonymous function to variable in swift 
Sql :: mysql remote connection macos 
Sql :: change mysql paasword in cmd 
Sql :: how to make trigger in phpmyadmin 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =