Oracle 5.0 Reference Manual page 2215

Table of Contents

Advertisement

Member
unsigned int hour
unsigned int minute
unsigned int second
my_bool neg
unsigned long second_part
Only those parts of a
The year, month, and
hour, minute, and
Section 20.6.17, "C API Prepared Statement Handling of Date and Time
20.6.8.1. C API Prepared Statement Type Codes
The
buffer_type
variable bound to a statement parameter or result set column. For input,
type of the variable containing the value to be sent to the server. For output, it indicates the type of the
variable into which a value received from the server should be stored.
The following table shows the permissible values for the
structures for input values sent to the server. The table shows the C variable types that you can use,
the corresponding type codes, and the SQL data types for which the supplied value can be used
without conversion. Choose the
variable that you are binding. For the integer types, you should also set the
indicate whether the variable is signed or unsigned.
Input Variable C Type
signed char
short int
int
long long int
float
double
MYSQL_TIME
MYSQL_TIME
MYSQL_TIME
MYSQL_TIME
char[]
char[]
Use
MYSQL_TYPE_NULL
API Prepared Statement Data
For input string data, use
value is a character (nonbinary) or binary string:
MYSQL_TYPE_STRING
character set indicated by the
the value into a column with a different character set, it converts the value to that character set.
C API Prepared Statement Data Structures
structure that apply to a given type of temporal value are used.
MYSQL_TIME
elements are used for DATE, DATETIME, and
day
elements are used for TIME, DATETIME, and
second
member of
MYSQL_BIND
buffer_type
buffer_type
MYSQL_TYPE_TINY
MYSQL_TYPE_SHORT
MYSQL_TYPE_LONG
MYSQL_TYPE_LONGLONG
MYSQL_TYPE_FLOAT
MYSQL_TYPE_DOUBLE
MYSQL_TYPE_TIME
MYSQL_TYPE_DATE
MYSQL_TYPE_DATETIME
MYSQL_TYPE_TIMESTAMP
MYSQL_TYPE_STRING
MYSQL_TYPE_BLOB
MYSQL_TYPE_NULL
as indicated in the description for the
Structures".
MYSQL_TYPE_STRING
indicates character input string data. The value is assumed to be in the
character_set_client
Description
The hour of the day
The minute of the hour
The second of the minute
A boolean flag indicating whether the time is negative
The fractional part of the second in microseconds; currently
unused
structures indicates the data type of the C language
buffer_type
value according to the data type of the C language
Value
is_null
or
MYSQL_TYPE_BLOB
[441]
2195
TIMESTAMP
TIMESTAMP
Values".
indicates the
buffer_type
member of
MYSQL_BIND
is_unsigned
SQL Type of Destination Value
TINYINT
SMALLINT
INT
BIGINT
FLOAT
DOUBLE
TIME
DATE
DATETIME
TIMESTAMP
TEXT, CHAR,
VARCHAR
BLOB, BINARY,
VARBINARY
NULL
member in
Section 20.6.8, "C
depending on whether the
system variable. If the server stores
values. The
values. See
member to

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents