I have a string variable which is received as input to a stored procedure since MySQL doesn't support arrays.
arr='ra,ba,ca,da'
and I wanted to convert that into table of values
Table
-----
ra
ba
ca
da
What would be the simplest select statement to achieve that?
UNIONof queries that useSUBSTRING_INDEXto select each item up to the maximum.