|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Handling data for deleting multiple rows
I have a database 0f 15000 for an email newsletter.
I have a list of addresses/entries I would like to delete. There are about 1500 dodgey email adesses that need deletion. I can get these addresses as an excel spreadsheet, tab or column seperated list. The query I tried is delete from tblnewsmember where newsmember_email in ('address1','address2', 'address3') This works but does anyone know how I can get the data in this ('address1','address2', 'address3') format for thousands of email adddresses?!?! Any ideas most appreciated! merry xmas! jax |
|
#2
|
||||
|
||||
|
load them from excel or whatever into a separate table, call it badaddresses
then run: delete from tblnewsmember where newsmember_email in (select email from badaddresses) rudy |
|
#3
|
|||
|
|||
|
thanks for that good idea.
Jax |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > Handling data for deleting multiple rows |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|