Jump to content

[SOLVED] Mass delete emails from table ps_emailsubscription


c64girl

Recommended Posts

I have a list of dead emails from table ps_emailsubscription. Anyone know how i can delete them using csv file or a sql question?

 

I was thinking about

DELETE FROM ps_emailsubscription myTable WHERE email in ('[email protected]', '[email protected]');

 

But what about registered users? I will need to change 1 to 0?

 

Edit:

Ok i did and it worked
UPDATE ps_customer SET newsletter = 0 WHERE email in ('email1', 'email2');

 

Edited by c64girl (see edit history)
Link to comment
Share on other sites

  • c64girl changed the title to [SOLVED] Mass delete emails from table ps_emailsubscription

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...