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)
 CharIndex help?

Author  Topic 

abarsami
Yak Posting Veteran

68 Posts

Posted - 2001-08-09 : 19:26:37
I have a value of 'fr^~4~~~^~5~~~' and the value of 'fr^~5234~~~^~5333~~~'

The numbers inside the value are automatically generated. How do I tell it to select whatever is to the left of ^~blabla
starting from the right side.

'fr^~4~~~^~5~~~' would be 'fr^~4~~~'
'fr^~5234~~~^~5333~~~' would be 'fr^~5234~~~'

Charindex only lets me start from the left, instead of the right



   

- Advertisement -