Sets the value for the specified SQLType.TIME type parameter using a date.
setTimeParameter( UInt16 parameterID, Date value )
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.
Only the hour, minute, and second fields of the Date object are relevant.
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 ) ); |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |