Hi,
Want to copy a row from one database to another on different servers - have googled this and sql now looks like
unfortunatley i get error
I think this is because both the source db/table names are the same as the target db/table names.
Is this correct?
How do i get round this?
thanks MG
Want to copy a row from one database to another on different servers - have googled this and sql now looks like
Code:
INSERT
INTO server1.db.table
(field1, field2)
SELECT *
FROM server2.db.table
where id = '1'
unfortunatley i get error
Code:
Error Code : 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.table
I think this is because both the source db/table names are the same as the target db/table names.
Is this correct?
How do i get round this?
thanks MG