SAP HANA Tutorial: 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-

SQL Script Language elements are as below –

Declarative SQL Script Logic (Functional Extension)

Orchestration SQL Script Logic (Functional Extension)

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 SQL Script Logic (Procedural Extension)

Imperative logic splits the logic among several data flow. E.g. IF, ELSEIF, ELSE, CASE, FOR (Loop) and Exceptions.

Importance of SQL Script

Only SQL Script provides the necessary elements to migrate data-intensive logic or the operation of the application server to the database server.

Key points of SQL Script;

By using SQL Script, parallel processing mode can be achieved.

 

YOU MIGHT LIKE: