Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to split string in new line using select

example
select abc,def

my expected output is
abc
def

[edit]
name 
abc,def
sdf
edf



expected result

name
abc
def
sdf
edf
Posted
Updated 7-Nov-14 0:42am
v3
Comments
[no name] 7-Nov-14 6:27am    
Please post your question clearly ? which string ?
what is your string
vr reddy 7-Nov-14 6:28am    
select abc,def

my expected output is
abc
def
Laiju k 7-Nov-14 6:31am    
you can use group by column name
vr reddy 7-Nov-14 6:32am    
i want result in same column
Laiju k 7-Nov-14 6:30am    
your question heading content is always same.try to give more details.

The best suggestion is: don't store data as comma separated values - it seems simple to start with but it always gives problems.
See here for a way of dealing with it: Converting comma separated data in a column to rows for selection[^]
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900