PDA

View Full Version : mass update users whoose certain field is not empty


spaceb
10-02-2004, 05:29 PM
help me please, I want to mass update only thoose users whoose "game" field is not empty.
How can i do it?? :ermm:

nexialys
10-02-2004, 06:01 PM
UPDATE vb_user set thefield='fieldcontent' WHERE game='';

this will update the field "thefield" when the field "game" is empty ...

spaceb
10-02-2004, 06:22 PM
Thank you very much nexialys

spaceb
10-02-2004, 06:38 PM
ohh its wrong mate, its updated me all the users whoose "game" field is empty, i asked only thoose whoose game table is not empty. :surprised:

Velocd
10-02-2004, 06:43 PM
UPDATE user
SET field = 'content'
WHERE game != ''

spaceb
10-02-2004, 06:46 PM
thank you Velocd