In MySQL, how would I select each character in a given string as individual rows, if the length of the string is unknown. For example, if I have the string:
SET @str:='abc';
I would like a SELECT
statement to produce:
rownum char
====== ====
1 a
2 b
3 c
If possible, I would like to avoid temp tables or stored procedures.