Feb 17, 2002 #1 iam288 Programmer Feb 17, 2002 1 HK Hi guys, I've got a problem. Any suggestion?? update t1, t2 set t1.txt = t2.txt where t1.id = t2.id; I've tried this code in Access and it did work well but not for MySQL at all.
Hi guys, I've got a problem. Any suggestion?? update t1, t2 set t1.txt = t2.txt where t1.id = t2.id; I've tried this code in Access and it did work well but not for MySQL at all.
Feb 18, 2002 #2 Broccoli2 MIS Mar 26, 2001 161 GB Nope - you can't do this in MySQL (yet). A workaround is to do a CREATE TABLE SELECT then replace your old table with the new one -Rpb Upvote 0 Downvote
Nope - you can't do this in MySQL (yet). A workaround is to do a CREATE TABLE SELECT then replace your old table with the new one -Rpb
Feb 18, 2002 #3 riffy Programmer Mar 29, 2001 106 US u could also use update <tablename> set <whatever> where <whatever> am i right? Upvote 0 Downvote
Feb 18, 2002 #4 riffy Programmer Mar 29, 2001 106 US never mind that, i didn't realize it was two different tables...rob's suggestion will do it arif Upvote 0 Downvote