返回预期用于预准备语句的参数数目。
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 ) |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |