Entering content frame

 Transferring DEFAULT Values to the Database Instance 

Use

In the application program, you can use indicator values to transfer a DEFAULT value to a database table, for example, in an INSERT or UPDATE statement.

Procedure

Before calling the embedded SQL statement, set the indicator value to the predefined constant SQL_DEFAULT_PARAM. The database instance ignores the value of the corresponding host variable, and enters the DEFAULT value in the table that is being addressed.

This procedure is not permitted for LONG columns.

You can also use indicator values for transferring NULL values to the database instance.

 

 

Leaving content frame