If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > split the values which sperated by comma

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-02-08, 06:11
shanthiash shanthiash is offline
Registered User
 
Join Date: Sep 2008
Posts: 2
split the values which sperated by comma

Hi guys,

i need this great help from ur side. in my table i am having one field ex: adress_emp in this field the data is like (Meena V Burman,12 Madhav Park,Part-II,Ahmedabad-382418) how can i seperate the values individually like i mentioned below

Meena V Burman
12 Madhav Park
Part-II

please help me to find the solution........
Reply With Quote
  #2 (permalink)  
Old 09-02-08, 13:29
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
do you have a programming language available like php or asp?

that is the best way to approach this problem
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 09-04-08, 01:51
shanthiash shanthiash is offline
Registered User
 
Join Date: Sep 2008
Posts: 2
no i am not having that. simply using MYsql query i have to do that.
Reply With Quote
  #4 (permalink)  
Old 09-04-08, 05:03
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
Code:
SELECT REPLACE(adress_emp,',',CHAR(13,10))
  FROM ...
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On