jazz__man
asked on
How can I select and then update certain characters of a string in sql server 2005?
Hi
Suppose I have a column with data like
256dddggg@@576576
dgg782t@@6786
cb8979000shdj@@89789789
cn44@@123
or any other combination.
I need to first select this part @@576576 and remove the @@ so that I am left with 576576. Then I want to select everything before @@ and update the column with whats left hence removing everything after @@.
Hope this makes sense.
Suppose I have a column with data like
256dddggg@@576576
dgg782t@@6786
cb8979000shdj@@89789789
cn44@@123
or any other combination.
I need to first select this part @@576576 and remove the @@ so that I am left with 576576. Then I want to select everything before @@ and update the column with whats left hence removing everything after @@.
Hope this makes sense.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
select substring('cb8979000shdj@@