Previous Topic

Next Topic

Put Data

Valid in: ESQL

The PUT DATA statement writes a segment of a long varchar, long nvarchar, or long byte column from an embedded program to a table. The PUT DATA statement is valid only in data handler routines. For details about data handler routines, see the chapter "Working with Embedded SQL" and the Embedded SQL Companion Guide.

Previous Topic

Next Topic

Syntax

The PUT DATA statement has the following format:

EXEC SQL PUT DATA(SEGMENT = col_value
              [, SEGMENTLENGTH = length_value]
               [, DATAEND = dataend_value]);

The host language variables for col_value, length_value, and dataend_value must be declared in a BEGIN DECLARE SECTION/END DECLARE SECTION block to the ESQL preprocessor.

The data handler must issue a PUT DATA statement with DATAEND set to 1 before exiting; otherwise, the DBMS Server issues a runtime error.

Previous Topic

Next Topic

Permissions

All users are permitted to use this statement.

Previous Topic

Next Topic

Related Statements

Get Data


© 2007 Ingres Corporation. All rights reserved.