Is there a way to use INSERT ... SELECT in mysql to copy data from tableA.field2 to tableB.field2 if the data is not in tableB.field2 already? example:
INSERT INTO tableB (field2) SELECT field2 FROM tableA WHERE IS NOT IN tableB (field2)
IS NOT IN isn't valid syntax I'm sure... but is there something that would work?
Thanks in advance!
Mark
PS yes, I know it could be done via a longer php comparison, I'm hoping to avoid it as I have A LOT of these queries to make