The accepted answer did not work for me, as the result set was multirow. I figured out a solution:
CREATE TEMPORARY TABLE silence_output SELECT * FROM foo; DROP TEMPORARY TABLE silence_output;
This avoids the multi-line / multi-column problems that may occur when a result set is dropped into a table, which is then reset. Hope this helps someone else. You can call the temporary table something.
source share