Oracle 5.0 Reference Manual page 2190

Table of Contents

Advertisement

mysql_num_rows()
retrieved.
mysql_num_rows()
statements such as INSERT, UPDATE, or DELETE, the number of affected rows can be obtained with
mysql_affected_rows().
Return Values
The number of rows in the result set.
Errors
None.
20.6.6.49.
mysql_options()
int mysql_options(MYSQL *mysql, enum mysql_option option, const char *arg)
Description
Can be used to set extra connect options and affect behavior for a connection. This function may be
called multiple times to set several options.
Call
mysql_options()
mysql_real_connect().
The
option
If the option is an integer, specify a pointer to the value of the integer as the
The following list describes the possible options, their effect, and how
Several of the options apply only when the application is linked against the
server library and are unused for applications linked against the
option descriptions that indicate
MYSQL_INIT_COMMAND
SQL statement to execute when connecting to the MySQL server. Automatically re-executed if
reconnection occurs.
MYSQL_OPT_COMPRESS
Use the compressed client/server protocol.
MYSQL_OPT_CONNECT_TIMEOUT
Connect timeout in seconds.
MYSQL_OPT_GUESS_CONNECTION
For an application linked against the
to guess whether to use the embedded server or a remote server. "Guess" means that if the
host name is set and is not localhost, it uses a remote server. This behavior is the default.
MYSQL_OPT_USE_EMBEDDED_CONNECTION
used to override it. This option is ignored for applications linked against the
library.
MYSQL_OPT_LOCAL_INFILE
If no pointer is given or if pointer points to an
LOCAL INFILE
MYSQL_OPT_NAMED_PIPE
C API Function Descriptions
does not return the correct value until all the rows in the result set have been
is intended for use with statements that return a result set, such as SELECT. For
after
mysql_init()
argument is the option that you want to set; the
arg
(argument type:
(argument: not used)
(argument type: optional pointer to
statement is enabled.
(argument: not used)
and before
mysql_connect()
is unused, its value is irrelevant; it is conventional to pass 0.
char
*)
(argument type:
unsigned int
(argument: not used)
embedded server library, this enables the library
libmysqld
and
MYSQL_OPT_USE_REMOTE_CONNECTION
unsigned int
2170
or
argument is the value for the option.
arg
argument.
arg
is used for each option.
arg
libmysqld
libmysqlclient
*)
libmysqlclient
unsigned
int)
that has a nonzero value, the
embedded
client library. For
can be
client
LOAD

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents