Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Various ways to create procedures

$
0
0

Hi folks,

 

OPTION1: I'm working on a procedure and I'm doing it via CREATE PROCEDURE syntax using SQL editor.  When I do it this way my procedure is saved under my schema.  However if I want to make changes to this procedure after initial creation, it seems I have to delete original and then tweak my SQL in the editor and execute it again.  It seems to be read only each time. 

 

OPTION2: As an alternative I can also write a procedure in content using procedure editor (with interface for creating inputs and outputs) by right-clicking on a package and choosing NEW PROCEDURE.  This way allows me to repeatedly EDIT my procedure however I don't see how to type declarations above the BEGIN.  For example my procedure could be declaring CURSOR prior to the BEGIN step when written via SQL editor but I don't see how to accomplish this when using procedure editor.

 

So I have two questions;

 

1) Is there an easier and less cumbersome way to repeatedly edit my procedure using option1?

 

2) Is it possible to have declarations before BEGIN using option 2?

 

Thanks,

-Patrick


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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