cp_dbms

Section: cp_dbms (3)
Updated: MARCH 2006
Index Return to Main Contents
 

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)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 22:48:28 GMT, April 10, 2006
SourceForge.net Logo