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)
 Changin Column value to rows

Author  Topic 

sg2255551
Constraint Violating Yak Guru

274 Posts

Posted - 2007-09-15 : 13:13:24
hi

How do i change column value to row

Example:

from
123,515,612,845,525,321

to
123
515
612
845
525
321

Thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-15 : 17:12:33
select * from fnparselist(',', col1)



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

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-09-17 : 01:38:36
1 Search for Normalization
2 Search for Split function

Madhivanan

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

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-09-17 : 01:41:49
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=76033

Madhivanan

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

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-09-17 : 01:44:35
quote:
Originally posted by Peso

select * from fnparselist(',', col1)



E 12°55'05.25"
N 56°04'39.16"



So, you forgot your own thread?

Madhivanan

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

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-17 : 02:28:50
Yes

Many things this weekend.

Lamaze class, fixing the car, fixing the house, fixing the cats.
We are also throwing a party next weekend for our friends to come visit our new house.
A lot of planning, my girlfriend thinks.

I am a lot more relaxed. I believe in putting a keggar on the table and some snacks will do.



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

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-09-17 : 02:50:13
quote:
Originally posted by Peso

Yes

Many things this weekend.

Lamaze class, fixing the car, fixing the house, fixing the cats.
We are also throwing a party next weekend for our friends to come visit our new house.
A lot of planning, my girlfriend thinks.

I am a lot more relaxed. I believe in putting a keggar on the table and some snacks will do.



E 12°55'05.25"
N 56°04'39.16"



Good

Madhivanan

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

- Advertisement -