Professional Documents
Culture Documents
SQ L Script Procedures
SQ L Script Procedures
-- it supports
Case expressions
Aggregation expressions ,
Function expressions
subquieries in expression
-- Aggreagation expression
Data extesion : Allows the definition of table types without corresponding tables
Sql supports sql 92 standard system and also primitive data type
TINYINT , SMALLINT , INTEGER , BIGINT
DECIMAL (p,s ), REAL , FLOAT , DOUBLE ,
VARCHAR , NVARCHAR , CLOB, NLOB,
VARBINARY , BLOB ,
DATE ,TIMe ,TIMESTAMP
declaring a variable
devlare a int ;
declare b int = 0 ;
b = :a + 5 .
IF <bool-expr1>
THEN
statements ---
ELSEIF <bool-expr2>
THEN
statements ----
ELSe .
statements ---
ENDIF.
Example :
else .
call ins2_msg_proc2
endif.
WHILE <bool-expr> DO
STATEMENTS
END WHILE
{statements}
ENDFOR