cp_db_connection_prepare_statement(3)
| cp_dbms(3) | cp_dbms | cp_dbms(3) |
NAME
cp_db_connection_prepare_statement - create a prepared statement
SYNOPSIS
#include <cprops/db.h>
cp_db_statement * cp_db_connection_prepare_statement(cp_db_connection *connection, int prm_count, cp_field_type *prm_types, char *query);
DESCRIPTION
cp_db_connection_prepare_statement creates a prepared statement with prm_count parameters of the types given by prm_types for the query query on the connection connection. Parameters are specified as '?' in the query string; implementations may support other formats in addition. See cp_db_connection_select(3) for a list of the parameter types that may be used in the prm_type parameter type specification vector.
RETURN VALUE
a cp_db_statement representing the prepared statement on success or NULL on failure.
SEE ALSO
cp_db_statement_set_binary(3), cp_db_connection_execute_statement(3), cp_db_connection_close_statement(3)
| MARCH 2006 | libcprops |
