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 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 constraint to check date less than current date 
Sql :: mysql workbench view 
Sql :: default column value in sql same as another column laravel 
Sql :: MySql query execution order: 
Sql :: systems sql 
Sql :: Triggers Syntax 
Sql :: SQL CREATE INDEX Constraint 
Sql :: pl sql command line run 
Sql :: sql: extract day text from datetime value 
Sql :: connectionString 
Sql :: show last sql executed in oracle 
Sql :: mysql multiply 
Sql :: how to create local postgres database 
Sql :: mysql shell set time_zone 
Sql :: oracle job session 
Sql :: sql injection 
Sql :: install sql server in ubuntu 20.04 
Sql :: select in select sql 
Sql :: sql output parameters 
Sql :: connect mysql 
Sql :: mysqlimport 
Sql :: new rails app with mysql 
Sql :: SQLSTATE[42S02]: Base table or view not found: 1146 Tabl 
Sql :: sql where statement 
Sql :: on delete set default 
Sql :: accessing varchar array from sql 
Sql :: changer un mot de passe mysql 
Sql :: sqlite3 get data from table c 
Sql :: homebrew nysql launch 
Sql :: sql server search all databases for objects 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =