SQL
zoo.net
'INSERT..SELECT' copies data from a SELECT into a table.
SQLite
DB2
Access
Postgres
Oracle
SQL Server
MySQL
Mimer
Sybase
Oracle
Execute tidy up
code
silently
DELETE FROM t_peep WHERE id>100
INSERT INTO t_peep SELECT population, name FROM cia WHERE region='Europe'; SELECT * FROM t_peep
Specific to Oracle
none
Related links:
INSERT, UPDATE and DELETE
INSERT is used to add records.
UPDATE can change an existing record.
DELETE removes records.
'INSERT..SELECT' copies data from a SELECT into a table.
INSERT: Not all fields need be specified. Default values may be specified in the CREATE TABLE clause - otherwise NULL is used.
Insert a date.
Explicitly enter a NULL.
Can't INSERT because of reference.
Cannot DELETE because of reference.
Can't insert data because of incompatable formats.
String contains a quote '
to select the data from 20 different columns into one changing the values according to one other column consisting the positions of the 20 columns