Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定された SQL 文字列を準備します。
sqlany_prepare ( $conn, $sql )
$conn sqlany_connect を使用して確立された接続の接続オブジェクト。
$sql 準備される SQL 文。
文オブジェクトのスカラー値を返します。失敗した場合は NULL を返します。
文オブジェクトに関連付けられた文は sqlany_execute によって実行されます。sqlany_free_stmt を使用して、文オブジェクトに関連付けられたリソースを解放できます。
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 ) param.set_value(50) rc = api.sqlany_bind_param( stmt, 0, param ) rc = api.sqlany_execute( stmt )