DEV Community

Smart003
Smart003

Posted on

unable to execute the block

0

can you help me in rectifying the following code

execute immediate $$
declare
    TABLE_CATALOG varchar default ('DB')
    TABLE_SCHEMA varchar default ('SCH');
    VIEW_NAME varchar default ('View');
  VEW resultset default (SELECT * from table(GET_OBJECT_REFERENCES(DATABASE_NAME =>:TABLE_CATALOG , SCHEMA_NAME =>:TABLE_SCHEMA, OBJECT_NAME =>:VIEW_NAME)));
 begin
return table(VEW);
end;
$$
;

the following error appears when the…

Top comments (0)