I’m doing somethign wrong because I received the following error:
———–
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘– 1 WHERE mail in (select mail from drupal_users where mail=2)’ at line 1
————-
This is how I implemented the query..
UPDATE phplist_user_user set email = email – 1
WHERE mail in (select mail
from drupal_users
where mail=2)
If an entry in the “mail” column from the “drupal_users” table is found then I would want it removed from the “mail” column in the “phplist_user_user” table.
What am I doing wrong?
Written by admin about 4 months ago.
it looks like you are subtracting 1 from whatever amount you have in the email_columnin the (phplist_user_user_table), take off the minus 1— thats for lets say email had value of 7, then new value would be 6 because u subtracted one from value. I will look at rest
Comments
Leave a comment Trackback