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  | 
     ||||
|---|---|---|---|---|---|
       
  | 
      
       
  | 
     
 
   ROW_COUNT identifies the number of rows associated with the previous SQL statement. If the previous SQL statement is a DELETE, INSERT, or UPDATE statement, ROW_COUNT identifies the number of rows that qualified for the operation.
System Tables
System tables _V_SYS_COLUMNS is replaced with information_schema.columns.
| 
        Netezza Syntax  | 
      
        Syntax After Migration  | 
     ||||
|---|---|---|---|---|---|
       
  | 
      
       
  | 
     
 
   Column mapping:
- table_schem => table_schema
 - table_name => table_name
 - column_name => column_name
 - ordinal_position => ordinal_position
 - type_name => data_type
 - is_nullable => is_nullable
 
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  | 
     ||||
|---|---|---|---|---|---|
       
  | 
      
       
  | 
     
GaussDB(DWS) Keywords
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  | 
     ||||
|---|---|---|---|---|---|
       
  | 
      
       
  | 
     
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.