I want to insert the results from a dynamic query into a temp table or a way to use this result as a table. for example :
declare str varchar(2000);
set @str="select
from
`cdr` ";
PREPARE stmt1 FROM @str;
EXECUTE stmt1;
and now i want to execute a query like this
select * from stmt1;