SQL rules with SAP HANA

If you are using an SAP HANA database, keep in mind the following when creating your SQL query:
  • Anonymous block statements do not exist in SAP HANA.

    To declare variables or control structures, you must create stored procedures in SQL Script. For more information, see the SAP HANA SQLScript Reference guide on the Help Portal at: http://help.sap.com/hana_platform.

  • Separators in SQL rules (and functions) are the same for all relational databases (Oracle, SQL Server and SAP HANA).

    \; is replaced by ;, and is concatenated with the rest of the code that follows. The rule is not executed until the end of the script or as soon as ; (not preceded by a backslash) is encountered.

  • Columns called "rollup" or "condition" must be enclosed by double quotes (""), otherwise the query will not function correctly, since these are reserved keywords.
Tip You can use the worktable name to create the names of stored procedures in order to avoid duplication.