Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
166 KiB
Procedure
Variable Data Type
NVARCHAR changed to NCHAR VARING.
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
row counts
The row_count function is supported for affected row counting.
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
System Tables
System tables _V_SYS_COLUMNS is replaced with information_schema.columns.
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
For date subtraction, the corresponding Integer should be returned
Return value should be integer for date subtraction.
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
Support of TRANSLATE Function
The SQL TRANSLATE() function replaces a sequence of characters in a string with another sequence of characters. The function replaces a single character at a time.
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|

If it contains a single parameter, just execute the UPPER.
UPPER(param1)
If it contains two parameters, throw error.
If it contains three parameters, TRANSLATE(1st param, 3rd param, RPAD(2nd param, LENGTH(3rd param), ' ')).
If it contains four parameters, TRANSLATE(1st param, 3rd param, RPAD(2nd param, LENGTH(3rd param), 4th param)).
Data Type
NATIONAL CHARACTER VARYING ( ANY )
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
CHARACTER VARYING ( ANY )
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
Numeric (ANY)
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
Exception
TRANSACTION_ABORTED
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
END statement is specified without semicolon (;)
END statement specified without semicolon (;) is migrated as follows:
END /
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
LOOP
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
Gauss keyword
CURSOR
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
DECLARE
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
EXECUTE AS CALLER
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|
Expression
SELECT result assign into variable.
Netezza Syntax |
Syntax After Migration |
||||
---|---|---|---|---|---|
|
|