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 类

 

setBytesParameter 方法

使用字节数组设置指定参数的值。

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

  • value   参数的新值。

注释

仅适用于 SQLType.BINARY 或 SQLType.LONGBINARY 类型的列。

示例

以下语句设置第一个参数的值:

var blob = new Array( 3 );
blob[ 0 ] = 78;
blob[ 1 ] = 0;
blob[ 2 ] = 68;
stmt.setBytesParameter( 1, blob );