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

SQL Anywhere 11.0.1 (日本語) » Ultra Light - M-Business Anywhere プログラミング » Ultra Light 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 );