#include <SQLDBC.h>
Definition at line 402 of file SQLDBC.h.
|
|
|
|
|
|
|
|
|
Returns the number of parameter/columns in the PreparedStatement or ResultSet object.
|
|
Returns the maximum width in characters of the data type of the specified parameter.
|
|
Returns the input/output behaviour of the specified parameter.
|
|
Requests the name of the specified parameter.
|
|
Returns the data type of the specified parameter.
|
|
Returns maximum physical width in bytes of the data type of the specified parameter.
|
|
Returns the number of decimal digits of the data type of the specified parameter. For number types, getPrecision() returns the number of decimal digits. For character types, it returns the maximum length in characters. For binary types, it returns the maximum length in bytes.
|
|
Returns the number of decimal places of the data type of the specified parameter. For none numeric types, the scale is set to zero.
|
|
Returns whether NULL values are allowed for the specified parameter values.
|
|
A class for preparing and executing SQL statements. A prepared SQL command can be parsed and contain input and output parameters. Parameters are marked with a '?' or ':<name>' tag. All DML commands can be parsed. DDL commands can be parsed, too. However, it is not recommended to do so. Prepared SQL commands increase the performance since they are parsed only once and executed several times. Applications only need to change the content of the bound parameters and execute the command again. All prepared SQL commands are stored in an internally managed ParseInfo Cache . The ParseInfo Cache shares this information with different prepared SQL statements within the same connection.
The SQL statement may contain ASCII or UCS2 characters and must not zero-terminated. The execute() member function converts it to the adequate code set considering the code of the database. Therefore it is possible to write portable code for UNICODE and non-UNICODE databases.
SQLDBC_PrepareStatement *stmt = conn->createPreparedStatement(); SQLDBC_Retcode rc = stmt->prepare("SELECT * FROM DUAL"); if (rc != SQLDBC_OK) { // Handle error ... } rc = stmt->execute(); if (rc != SQLDBC_OK) { // Handle error ... }
|
|
|