ERROR | cursor string cannot be used in dynamic SQL OPEN statement |
CAUSE | dynamicly OPEN a REF CURSOR that has RETURN type. However, only REF CURSOR without RETURN type can be OPENed by an embebded dynamic OPEN statement. |
ACTION | define a REF CURSOR without return type, and use it in the statement. |