I have one column in MySQL which is return me comma separated value , I want to convert that column in to rows.
Better answer then How to convert comma separated parameters to rows in mysql?
select value from table limit 1
response
value |
---|
honda,activa,pleasure,car |
I want this value to row like
value |
---|
honda |
activa |
pleasure |
car |
2
Answers
First we need to create function which return index value of comma separated value
Then Create virtual recursive table from current value
will return
fiddle
PS. The query assumes that the value does not contain duoble quotes. If they are present then they must be quoted. See https://dbfiddle.uk/HUmPZEo1