I am trying to transfer data from one database to another in the same server in the condition that one field in the old DB is equivalent to a field in the new DB
I can mention that the two databases have complete different structure.
Here is my script:
INSERT INTO newDB.myTable (field) select oldField FROM oldDB.table WHERE id= newDB.myTable (field);
I get this error:
ERROR 1305 (42000): FUNCTION newDB.myTable does not exist