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 クラス

 

setFloatParameter メソッド

指定した SQLType.REAL パラメータの値を設定します。

構文
setFloatParameter( UInt16 parameterID, Float value )
パラメータ
  • parameterID   パラメータの ID 番号。結果セットの最初のパラメータの ID 値は 1 です。

  • value   パラメータの新しい値。

次の文は、最初のパラメータの浮動小数点値を設定します。

stmt.setFloatParameter( 1,
    (2 - Math.pow(2,-23)) * Math.pow(2,127)
);