Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
ユーザが指定するバッファを準備文のパラメータとしてバインドします。
sqlany_bind_param ( $stmt, $index, $param )
$stmt sqlany_prepare の実行によって返された文オブジェクト。
$index パラメータのインデックス。数値は、0 ~ sqlany_num_params() - 1 の間である必要があります。
$param sqlany_describe_bind_param から取得された、設定済みのバインドオブジェクト。
成功した場合はスカラー値 1、失敗した場合は 0 を返します。
stmt = api.sqlany_prepare(conn, "UPDATE Contacts SET Contacts.ID = Contacts.ID + 1000 WHERE Contacts.ID >= ?" ) rc, param = api.sqlany_describe_bind_param( stmt, 0 ) print "Param name = ", param.get_name(), "\n" print "Param dir = ", param.get_direction(), "\n" param.set_value(50) rc = api.sqlany_bind_param( stmt, 0, param )