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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 20, 2013, 1:50 AM
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
Jignesh TrivediPosted Aug 20, 2013, 4:30 AM
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
Sanjeeb LenkaPosted Aug 20, 2013, 1:58 AM
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