Progress
Embedded SQL-92
Guide and Reference


Type Specifications for Host Language Types

Declares a variable or type that corresponds to a type supported by the host language. This host language type declaration must be within a BEGIN-END DECLARE SECTION.

SYNTAX

{  variable_name  [  , ...  ]  |  TYPE new_type_name  }
  IS OF TYPE host_language_type ; 

variable_name

C Language variable name.

TYPE new_type_name

The new type that corresponds to a type supported by the C Language.

IS OF TYPE host_language_type

Declares a variable or type that corresponds to a type supported by the host language.

SYNTAX
{  char  |  short  |  long  |  float  |  double  } 

NOTES

EXAMPLE

For example, the following declaration declares customer_no to be a variable of C Language type unsigned long.

EXEC SQL BEGIN DECLARE SECTION ;
TYPE customer_no IS OF TYPE unsigned long ;
EXEC SQL END DECLARE SECTION ; 

ENVIRONMENT

Embedded SQL-92 only


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095