Oracle 5.0 Reference Manual page 2203

Table of Contents

Advertisement

Use
mysql_row_tell()
Return Values
The current offset of the row cursor.
Errors
None.
20.6.6.60.
mysql_select_db()
int mysql_select_db(MYSQL *mysql, const char *db)
Description
Causes the database specified by
specified by mysql. In subsequent queries, this database is the default for table references that do not
include an explicit database specifier.
mysql_select_db()
use the database.
Return Values
Zero for success. Nonzero if an error occurred.
Errors
CR_COMMANDS_OUT_OF_SYNC
Commands were executed in an improper order.
CR_SERVER_GONE_ERROR
The MySQL server has gone away.
CR_SERVER_LOST
The connection to the server was lost during the query.
CR_UNKNOWN_ERROR
An unknown error occurred.
20.6.6.61.
mysql_set_character_set()
int mysql_set_character_set(MYSQL *mysql, const char *csname)
Description
This function is used to set the default character set for the current connection. The string
specifies a valid character set name. The connection collation becomes the default collation of the
character set. This function works like the
>charset, and thus affects the character set used by
This function was added in MySQL 5.0.7.
Return Values
Zero for success. Nonzero if an error occurred.
C API Function Descriptions
only after mysql_store_result(), not after mysql_use_result().
to become the default (current) database on the connection
db
fails unless the connected user can be authenticated as having permission to
[2942]
[2942]
[2942]
[2941]
SET NAMES
2183
statement, but also sets the value of
mysql_real_escape_string()
csname
mysql-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents