setTimestampParameter method

Sets the value for the specified parameter using a Timestamp.

Syntax
setTimestampParameter( UInt16 parameterID, Date value )
Parameters
  • parameterID   The ID number of the parameter. The first parameter in the result set has an ID value of one.

  • value   The new value for the parameter.

Example

The following statement sets a value for the first parameter to 1966/04/01 18:02:13:0000:

stmt.setTimestampParameter( 
    1, new Date( 1966,4,1,18,2,13,0 )
);