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
INSERT INTO sales.addresses (street, city, state, zip_code)
SELECT
street,
city,
state,
zip_code
FROM
sales.customers
ORDER BY
first_name,
last_name;
INSERT INTO my_table SELECT * FROM source_table;
INSERT INTO my_table (a, b, c) SELECT a, b, c FROM source_table;
INSERT INTO my_table (a, b, c) SELECT a, b, c FROM source_table s
WHERE s.my_col >= 10;
INSERT INTO table2
SELECT * FROM table1
WHERE condition;
INSERT INTO table1
SELECT col1, col2 , col3 FROM table2
WHERE your condition;
INSERT INTO salesTransaction_History
SELECT * FROM salesTransaction
WHERE item_Number='Salt-1';
INSERT INTO OldCustomers
SELECT *
FROM Customers;