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
 SQL Server Development (2000)
 Regular Expressions based query

Author  Topic 

alissababa
Starting Member

5 Posts

Posted - 2007-09-05 : 06:38:14
Hello... I would like to do this query :
UPDATE table_name SET RowA='hello_world' WHERE RowA='*die*'

I Can't do the part that is red in the above line, How can I do it instead??

Thanks!

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-05 : 06:40:46
Books Online states that the wildcard character for SQL Server is %

UPDATE table_name SET RowA = 'hello_world' WHERE RowA LIKE '%die%'



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-09-05 : 07:05:28
or post some sample data with expected result

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -