Oracle 5.0 Reference Manual page 2156

Table of Contents

Advertisement

A boolean type, for values that are true (nonzero) or false (zero).
The
structure contains the members described in the following list:
MYSQL_FIELD
char * name
The name of the field, as a null-terminated string. If the field was given an alias with an
the value of
is the alias.
name
char * org_name
The name of the field, as a null-terminated string. Aliases are ignored. For expressions, the value is
an empty string.
char * table
The name of the table containing this field, if it isn't a calculated field. For calculated fields, the
value is an empty string. If the column is selected from a view,
table
table or view was given an alias with an
value is the empty string.
char * org_table
The name of the table, as a null-terminated string. Aliases are ignored. If the column is selected from
a view,
org_table
char * db
The name of the database that the field comes from, as a null-terminated string. If the field is a
calculated field,
is an empty string. For a UNION, the value is the empty string.
db
char * catalog
The catalog name. This value is always "def".
char * def
The default value of this field, as a null-terminated string. This is set only if you use
mysql_list_fields().
unsigned long length
The width of the field. This corresponds to the display length, in bytes.
The server determines the
length required for a data type capable of holding the largest possible value from the result column,
without knowing in advance the actual values that will be produced by the query for the result set.
unsigned long max_length
The maximum width of the field for the result set (the length in bytes of the longest field value for the
rows actually in the result set). If you use
this contains the maximum length for the field. If you use mysql_use_result(), the value of this
variable is zero.
The value of
max_length
example, if you retrieve a
length of '-12.345').
If you are using prepared statements,
protocol the lengths of the values depend on the types of the values in the result set. (See
Section 20.6.8, "C API Prepared Statement Data
C API Data Structures
AS
names the underlying table. For a UNION, the value is the empty string.
value before it generates the result set, so this is the minimum
length
mysql_store_result()
is the length of the string representation of the values in the result set. For
column and the "widest" value is -12.345,
FLOAT
max_length
2136
clause, the value of
table
is not set by default because for the binary
Structures".) If you want the
clause,
AS
names the view. If the
table
is the alias. For a UNION, the
or mysql_list_fields(),
is 7 (the
max_length
max_length
values

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents