PDA

View Full Version : mysql query -- need some help.


cobradude
08-21-2006, 05:21 AM
I need to find in the "user" table IF field blah is set to "1" then set field blah2 to "1".

What is the sql statement I need to do this?

Thanks for your help.

cobradude
08-26-2006, 08:45 PM
Anyone?

Paul M
08-27-2006, 01:00 PM
update user set blah2 = 1 where blah = 1;