Hello!
I need to execute a dynamic query and capture your result in a
integer variable.
I´m using the statement "EXECUTE string", but I don´t obtain to
capture the result of dynamic query.
v_count:= EXECUTE v_query;
Documentation: 19.5.4. Executing dynamic queries
"The results from SELECT queries are discarded by EXECUTE, and SELECT INTO is not currently supported within EXECUTE. So, the only way to extract a result from a dynamically-created SELECT is to use the FOR-IN-EXECUTE form described later."
Regards, Tomasz Myrta
---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match