I do not understand what is wrong with my query:
mysql> update prices,prices_t mp set prices.new_ecam pus=prices_tmp. new
where prices.isbn = prices_tmp.isbn ;
ERROR 1064: You have an error in your SQL syntax near 'prices_tmp set
prices.new_ecam pus=prices_tmp. new where prices.isbn = prices_tmp.' at
line 1
it seems to follow the sample code I have seen:
mysql> UPDATE cds, artists
-> SET cds.title = 'The Funkship Odyssey', artists.Artist = 'George
Clinton'
-> WHERE (artists.artist ID = cds.artistID) AND (cds.cdID = '2');
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0
mysql> update prices,prices_t mp set prices.new_ecam pus=prices_tmp. new
where prices.isbn = prices_tmp.isbn ;
ERROR 1064: You have an error in your SQL syntax near 'prices_tmp set
prices.new_ecam pus=prices_tmp. new where prices.isbn = prices_tmp.' at
line 1
it seems to follow the sample code I have seen:
mysql> UPDATE cds, artists
-> SET cds.title = 'The Funkship Odyssey', artists.Artist = 'George
Clinton'
-> WHERE (artists.artist ID = cds.artistID) AND (cds.cdID = '2');
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0
Comment