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

SQL Anywhere 11.0.1 (中文) » UltraLite - M-Business Anywhere 编程 » UltraLite for M-Business Anywhere API 参考 » PreparedStatement 类

 

setDateParameter 方法

使用日期设置指定的 SQLType.DATE 类型参数的值。

语法
setDateParameter( UInt16 parameterID, Date value )
参数
  • parameterID   参数 ID 号。结果集中第一个参数的 ID 值为 1。

  • value   参数的新值。

注释

仅与 Date 对象的年、月和日字段相关。

示例

以下语句将第一个参数的值设置为 2004/09/27:

stmt.setDateParameter( 
    1, new Date( 2004,9,27,0,0,0,0 )
);