xxxxxxxxxx
--format
INSERT INTO Customers (CustomerName, City, Country)
SELECT SupplierName, City, Country FROM Suppliers;
--examples
INSERT INTO Customers (CustomerName, City, Country)
SELECT SupplierName, City, Country FROM Suppliers;
xxxxxxxxxx
INSERT INTO sales.addresses (street, city, state, zip_code)
SELECT
street,
city,
state,
zip_code
FROM
sales.customers
ORDER BY
first_name,
last_name;
xxxxxxxxxx
INSERT INTO user_profile (
name,
client_id,
email_id,
mobile,
create_date,
last_modified
)
SELECT
name,
client_id,
email_id,
mobile,
now(),
now()
FROM
user_profile
WHERE
id = 106
xxxxxxxxxx
INSERT INTO salesTransaction_History
SELECT * FROM salesTransaction
WHERE item_Number='Salt-1';
xxxxxxxxxx
INSERT INTO table1
SELECT col1, col2 , col3 FROM table2
WHERE your condition;