Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Substring function

$
0
0

Hi gurus,

I have a table holding IDs in one column and a string in the second column like below.

COLUMN01       COLUMN02

1                      abc"11444,12,13"efg"14,15"hij"16,17,18,19"opqr

2                      ahsdhg"21,22,23"ghshds"24,25"fgh"26,27,28,28"shgshsg

3                      xvd"3142,32,33"hty"34,35"okli"36,37,38,39"adfd

Now I want to have the following result

COLUMN01       COLUMN02

1                      11444,12,13,14,15,16,17,18,19

2                      21,22,23,24,25,26,27,28,28

3                      3142,32,33,34,35,36,37,38,39

How can I do that?

Thanks so much


ebro



Viewing all articles
Browse latest Browse all 7129

Trending Articles