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
 General SQL Server Forums
 New to SQL Server Programming
 string into rows query

Author  Topic 

nextaxtion
Yak Posting Veteran

54 Posts

Posted - 2014-09-19 : 00:28:11
hi Team,

I have a string like below

DECLARE @STR VARCHAR(100) = 'AAAAAA~KKKKK~LLLL~AAAA'

i want to convert the string into rows like


AAAAAA
KKKKK
LLLL
AAAA

prithvi nath pandey

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2014-09-19 : 00:33:28
Use any of the split functions mentioned on this thread:

[url]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=50648[/url]

Harsh Athalye
http://www.letsgeek.net/
Go to Top of Page

Upendra Gupta
Starting Member

12 Posts

Posted - 2014-09-19 : 06:21:36
unspammed
Go to Top of Page
   

- Advertisement -