INSERT ... SELECT
'INSERT..SELECT' copies data from a SELECT into a table.
schema:scott
DELETE FROM t_peep WHERE id>100
INSERT INTO t_peep
SELECT population, name FROM cia
WHERE region='Europe';
SELECT * FROM t_peep
'INSERT..SELECT' copies data from a SELECT into a table.
DELETE FROM t_peep WHERE id>100
INSERT INTO t_peep
SELECT population, name FROM cia
WHERE region='Europe';
SELECT * FROM t_peep