I'm pretty new to SQL and need some help configuring a command. The details of my database structure can be found in this thread: How to copy new data but skip old data from 2 tables in MySQL The general problem is that I'm merging a new (temporary) database with an old one. I want to keep all the data in the old but copy over any new data from the new. If there is a duplicate, the old should be favored/kept.
My current command is:
INSERT INTO BAT_players
SELECT *
FROM bat2.bat_players
WHERE NOT EXISTS (SELECT 1 FROM BAT_players WHERE BAT_players(UUID) = bat2.bat_players(UUID));
When I run this, I get
Function bat2.bat_players undefined
or Function bat.BAT_players undefined
I do not know how to proceed and would appreciate the help.