Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

How to get the result of an EXECUTE IMMEDIATE command?

$
0
0

Hi,

 

Is it possible to retrieve the results of the 'EXECUTE IMMEDIATE' into some temporary variable which can be used to display the output to the frontend using xsjs.

 

I am working on something like this:

 

create procedure ABC (in v_table nvarchar(100))

LANGUAGE SQLSCRIPT

SQL SECURITY DEFINER

DEFAULT SCHEMA U_PHOODA AS

begin

execute immediate 'select count(*) from '||:v_table;

end;

 

Now, how to store the output of this procedure?

 

 

Thanks,

Supriya


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>