You can first see what needs to be updated:
SELECT * FROM yourtable WHERE specificfield IS NULL
The script update is performed in the same way as:
UPDATE yourtable SET specificfield='$newvalue' WHERE specificfield IS NULL
Where:
yourtable is the name of the table you want, with the cells you want to update.
specificfield is the name of the field you want to update.
$ newvalue - the new value for the field (in quotation marks, since this is probably a string - I need to avoid this string).
note: , (, specificfield = '00000')
: ( )
SELECT * FROM yourtable
WHERE (specificfield IS NULL OR specificfield=0) AND userid<1000
UPDATE yourtable SET specificfield='$newvalue'
WHERE (specificfield IS NULL OR specificfield=0) AND userid<1000
where , , where .