Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Passing database name to stored procedure

$
0
0

Hi everyone,

 

Please tell me, how to send database name to the stored procedure.

For instance (doesn't work):

 

CREATE PROCEDURE "SelectPurchaseOrder" (IN DbName VARCHAR) LANGUAGE SQLSCRIPT AS

BEGIN

  SELECT * FROM :DbName.OPOR;

END;

 

SET SCHEMA is not a case, I need to modify data in two databases in a single query.

Regards, Evgeny.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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