Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - M-Business Anywhere Programming » UltraLite for M-Business Anywhere API Reference » PreparedStatement class

 setStringParameter method Next Page

setTimeParameter method


Sets the value for the specified SQLType.TIME type parameter using a date.

Syntax

setTimeParameter( UInt16 parameterID, Date value )

Parameters
Remarks

Only the hour, minute, and second fields of the Date object are relevant.

Example

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

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