What Is SQL Script?
What Is SQL Script?
SQL Script is a collection of extensions to SQL. It can be used in stored procedure in place of
plain SQL. It determines the functional and procedural extensions.
In SQL Script user can define local variables for structure and tables that are primarily used for
the creation of stored procedure.
SQL script can also be used in Calculation view. In SQL Script, there are two different logic
containers-
Orchestration logic is used to implement data flow by using DDL, DML and SQL Query
Statements and control flow logic using imperative language constructs such as loops and
conditionals.
Imperative logic splits the logic among several data flow. E.g. IF, ELSEIF, ELSE, CASE, FOR
(Loop) and Exceptions.
Only SQL Script provides the necessary elements to migrate data-intensive logic or the
operation of the application server to the database server.
SQL Script is executed and processed in the calculation engine within the HANA
database.
SQL Script is able to perform complex calculations.
In SQL Script, a local variable can be declared to hold the interim result.
SQL Script Procedure can return more result by using "OUTPUT Parameter" while
Normal SQL Procedure can return only one.
In SQL Script, you can define global or local tables types which can be used as
parameters.