SQL Insertar valores en la tabla
INSERT INTO table2
SELECT * FROM table1
WHERE condition;
Envious Echidna
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 Customers(customer_id, first_name, last_name, age, country)
VALUES
(5, 'Harry', 'Potter', 31, 'USA');
insert into cd.facilities
(facid, name, membercost, guestcost, initialoutlay, monthlymaintenance)
values (9, 'Spa', 20, 30, 100000, 800);