SELECT SPLIT('a,b,c,d', ',') as third;
how to output come this format in MYSQL
| Third |
| a |
| b |
| c |
| d |
I want query in MYSQL only
help me quickly
| Third |
| a |
| b |
| c |
| d |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 19, 2013, 9:50 PM EDT
Please refer the below link
http://stackoverflow.com/questions/11100501/split-comma-separated-values-from-one-column-to-2-rows-in-the-results-mysql
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 19, 2013, 9:58 PM EDT
http://stackoverflow.com/questions/3928325/split-keywords-for-post-php-mysql/3929161#3929161
http://stackoverflow.com/questions/3908966/mysql-procedure-to-load-data-from-staging-table-to-other-tables-need-to-split-up/3909888#3909888
Jignesh TrivediRank #16 · 50.3K reputationPosted Aug 20, 2013, 12:30 AM EDT
hi,
there is no built in function to spit data, you have to write your own function for this
Please refer below link it might help to create your own finction.
http://blog.fedecarg.com/2009/02/22/mysql-split-string-function/
http://code-cocktail.in/mysql-split-string-in-query/
https://gist.github.com/mikedamage/277782