CREATE PROCEDURE
Oracle Create Procedure to Snowflake Snow Scripting
Description
CREATE [ OR REPLACE ] [ EDITIONABLE | NONEDITIONABLE ]
PROCEDURE
[ schema. ] procedure_name
[ ( parameter_declaration [, parameter_declaration ]... ) ] [ sharing_clause ]
[ ( default_collation_option | invoker_rights_clause | accessible_by_clause)... ]
{ IS | AS } { [ declare_section ]
BEGIN statement ...
[ EXCEPTION exception_handler [ exception_handler ]... ]
END [ name ] ;
|
{ java_declaration | c_declaration } } ;CREATE [ OR REPLACE ] PROCEDURE <name> ( [ <arg_name> <arg_data_type> ] [ , ... ] )
RETURNS <result_data_type> [ NOT NULL ]
LANGUAGE SQL
[ { CALLED ON NULL INPUT | { RETURNS NULL ON NULL INPUT | STRICT } } ]
[ VOLATILE | IMMUTABLE ]
[ COMMENT = '<string_literal>' ]
[ EXECUTE AS { CALLER | OWNER } ]
AS '<procedure_definition>'Sample Source Patterns
1. Basic Procedure
2. Procedure with Different Parameters
Output parameters
Parameters with default values
3. Procedure with Additional Settings
4. Procedure with Basic Statements
5. Procedure with empty RETURN statements
RETURN statementsRETURN statements in procedures with output parameters
RETURN statements in procedures with output parametersKnown Issues
1. Unsupported OUT and the default value for parameters
2. Unsupported Oracle additional settings
Related EWIS
Last updated
Was this helpful?