Returns the number of parameters that are expected for a prepared statement.
sqlany_num_params ( $stmt )$stmt A statement object returned by the successful execution of sqlany_prepare.
Returns a scalar value that is the number of parameters in a prepared statement, or -1 on a failure.
stmt = api.sqlany_prepare(conn, "UPDATE Contacts
SET Contacts.ID = Contacts.ID + 1000
WHERE Contacts.ID >= ?" )
num_params = api.sqlany_num_params( stmt ) |
| Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |