8. SQL Statements : BEGIN DECLARE : BEGIN DECLARE Example
 
Share this page                  
BEGIN DECLARE Example
The following example shows the typical structure of a declaration statement:
EXEC SQL BEGIN DECLARE SECTION;
  buffer character_string(2000);
  number integer;
  precision float;
EXEC SQL END DECLARE SECTION;