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 语句。
返回标量值,即语句对象或 nil(失败时)。
由 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 )