If this is possible, please provide a sample query or two so I can see how it would work. Both tables will be in the same database.
Thanks!
Pseudo code:
insert into <target-table>
( <column-list> )
select <columns>
from <source-table>
INSERT...SELECT
is the answer; see http://dev.mysql.com/doc/refman/5.1/en/insert-select.html.
For example:
INSERT INTO names
SELECT last_name, first_name
FROM people
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With