Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting multiple rows from a table

Status
Not open for further replies.

Dynamo3209

Programmer
Jan 2, 2003
57
0
0
US
Hi,
I am trying to delete multiple rows from one table and using this following query
Code:
Delete from table WHERE name IN ('a@hotmail.com',' b@hotmail.com',' j@yahoo.com',' j@gmail.com')
This query only deletes the first email address in the array that is only a@hotmail.com is deleted.
An array with int type can be deleted in this way, but can we delete a varchar type array with such query.
Thanks,
Dynamo
 
When I get problems like this I like to use the where statement in a select to see what is being picked up. I would gues r937 is correct on this one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top