Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Wildcard and Delete

Author  Topic 

KabirPatel
Yak Posting Veteran

54 Posts

Posted - 2007-07-13 : 07:19:01
Hi,

I want to delete all records in a table that have the following as part of the string: "_RTT_"

When I do the following:

delete [mytable]
where mycolumn like '%_RTT_%'

it deletes any record that has RTT, presumably because it interprets the "_" as a wildcard character. Is their any way around this?

Thanks,
Kabir

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-13 : 07:57:59
Read in Books Online how to include special characters with \.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -