Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle insert from select

INSERT INTO my_table SELECT * FROM source_table;
INSERT INTO my_table (a, b, c) SELECT a, b, c FROM source_table;
INSERT INTO my_table (a, b, c) SELECT a, b, c FROM source_table s
	WHERE s.my_col >= 10;
Comment

oracle insert from select

INSERT INTO table
(column1, column2, ... column_n )
SELECT expression1, expression2, ... expression_n
FROM source_table
[WHERE conditions];

-- Basically, omit the VALUES clause when using SELECT for an insert into.
Comment

PREVIOUS NEXT
Code Example
Sql :: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@4.2.0 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@4.2.0 install script. 
Sql :: tsql from yyyymm to date 
Sql :: mysql get table column names and data types 
Sql :: split string and copy last element postgresql 
Sql :: full-text index mysql 
Sql :: mysql pass command from command line 
Sql :: oracle create index if not exists 
Sql :: create user with encrypted password postgresql 
Sql :: mysql not null 
Sql :: oracle synonym procedure 
Sql :: delete from table where length sql 
Sql :: mysql having 
Sql :: number(10 2) in sql means 
Sql :: cast as decimal postgresql 
Sql :: merge command in sql 
Sql :: create a table from one field of another table 
Sql :: drop a field in psql django 
Sql :: show broken table mysql 
Sql :: sql: extract day text from datetime value 
Sql :: sqlcmd 
Sql :: alter table name including schema 
Sql :: local pg_sql to heroku pg_sql 
Sql :: mysql comparing dates 
Sql :: case statement in sql 
Sql :: create a table 
Sql :: sql 
Sql :: mysqlimport 
Sql :: plpgsql 
Sql :: sql basic commands 
Sql :: missing index for constraint error in mysql 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =