I have two tables A and B with the same column names.
From PHP, how do I insert into B, everything that is in A and not already in B?
give this a look
http://dev.mysql.com/doc/refman/5.1/en/insert-select.html
Thanks, I always thought it had to do something with UNION
why doesn't this query work?
INSERT INTO A SELECT*FROM B WHERE title NOT IN(SELECT title FROM A)
A
B
I'm trying to insert everything in B into A that's not already in A.