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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete query with wild cards

Status
Not open for further replies.

elentz

Technical User
Jan 9, 2007
81
US
I have a table with about 15000 entries. there are many of them that I want to delete. I need to be able to delete certain part numbers. All the part numbers would be in this format xxx.xxxx.1 Most of the other part numbers are in this format xxx.xxxx So I want to delete ALL the entries with the .1 suffix. How can I show that in a delete query??

Thanks
 
So simple I am embarassed!

Thank you!
 
Or try:

[tt]DELETE FROM smorgasbord WHERE entree LIKE '%.1'[/tt]

(or better, first try [tt]SELECT * FROM smorgasbord WHERE entree LIKE '%.1'[/tt] )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top