I have a table in mysql with n rows and columns
col1 col2
a b
c d
...
Using mysql procedures, how would I get all the rows into 1 varchar variable?
DECLARE var varchar(4096);
SET var = <select * from table>
The value of var should be "a b\nc d\n...."
Thank you.