Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
执行预准备语句。
sqlany_execute ( $stmt )
$stmt 使用 sqlany_prepare 成功预准备的语句。
返回标量值,成功时为 1,不成功时为 0。
可使用 sqlany_num_cols 验证语句是否返回结果集。
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 )