I am having trouble getting things moved in a database. I have two tables with different column names the one that is the same name is “zip” but they have the same data. I want to move from table A to table b if the zip code doesn’t already exist in table b. I am using mysql command line.
Share
USe
INSERT INTO....SELECTTableA.colNamewill beNULLif it does not exists onTableB. just changecolNameto the columns names in your tables.UPDATE 1