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

SQL Anywhere 11.0.1 (日本語) » SQL Anywhere サーバ - プログラミング » SQL Anywhere データ・アクセス API » Ruby 用 SQL Anywhere » SQL Anywhere Ruby API

 

sqlany_num_params

準備文で必要とされるパラメータ数を返します。

構文
sqlany_num_params ( $stmt )
パラメータ
  • $stmt   sqlany_prepare の実行によって返された文オブジェクト。

戻り値

準備文内のパラメータ数のスカラ値を返します。失敗した場合は -1 を返します。

参照
stmt = api.sqlany_prepare(conn, "UPDATE Contacts
      SET Contacts.ID = Contacts.ID + 1000
      WHERE Contacts.ID >= ?" )
num_params = api.sqlany_num_params( stmt )