insérer à partir de
INSERT INTO table1 ( column1, column2 )
SELECT col1, col2
FROM table2
Jargs
INSERT INTO table1 ( column1, column2 )
SELECT col1, col2
FROM table2
INSERT INTO table2
SELECT * FROM table1
WHERE condition;
$sql = "INSERT INTO table_name('arg1, 'arg2', ...) VALUES ('value1,
value2, ...)'";
insert into cd.facilities values (9, 'Spa', 20, 30, 100000, 800);
INSERT INTO tableName
VALUES (‘anydata’, ‘anydata’, ‘anydata’, ‘anydata’, NULL,
NULL);
INSERT INTO sakila.actor
(first_name, last_name) # column names to insert into
VALUES
("Ryan", "Desmond"); # values to insert into those columns (in the same order)
# in SQL, the hashtag or pound sign is the comment symbol, just FYI