Forum Moderators: open

Message Too Old, No Replies

SQL Statement to Update User Database

         

matthewamzn

4:10 pm on Mar 8, 2006 (gmt 0)

10+ Year Member



I want to update all the users in my database to have email notifications enabled. I can't figure out what the exact sql query should be. This is what I have so far:

UPDATE "eshop_users"
SET "emailnotify" = yes
WHERE emailnotify = "no"

coopster

5:43 pm on Mar 8, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If you want to UDPATE all records, don't even use a WHERE clause:
UPDATE eshop_users SET emailnotify = 'yes';