Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Stored Procedure need an Array as output

$
0
0

Hi Experts,

 

I need to use a procedure, with an array as output.

How would you do this?

 

 

PROCEDURE "TBASE_PUBLIC"."development...procedures::procGetLabordateForPatient"  (

    IN patientID integer,

    out rs_labordatum "TBASE_PUBLIC"."development...data::TBASE_TT.Procedures.ttLabordate"

   

)

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  --DEFAULT SCHEMA <default_schema_name>

  READS SQL DATA AS

BEGIN

 

 

    rs_labordatum =

        SELECT 

            L."PatientID",

            L."Datum"

        FROM "TBASE_PUBLIC"."development...data::TBASE.cds.Labor" L

        WHERE

                L."PatientID" = :patientID

        ORDER BY L."Datum" DESC

    ;

END


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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