Oracle 5.0 Reference Manual page 2185

Table of Contents

Advertisement

mysql_library_init()
mysql_server_init()
Return Values
Zero if successful. Nonzero if an error occurred.
20.6.6.41.
mysql_list_dbs()
MYSQL_RES *mysql_list_dbs(MYSQL *mysql, const char *wild)
Description
Returns a result set consisting of database names on the server that match the simple regular
expression specified by the
may be a
NULL
query
SHOW DATABASES [LIKE
You must free the result set with mysql_free_result().
Return Values
A
MYSQL_RES
Errors
CR_COMMANDS_OUT_OF_SYNC
Commands were executed in an improper order.
CR_OUT_OF_MEMORY
Out of memory.
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.42.
mysql_list_fields()
MYSQL_RES *mysql_list_fields(MYSQL *mysql, const char *table, const char
*wild)
Description
Returns a result set consisting of field names in the given table that match the simple regular
expression specified by the
may be a
NULL
query
SHOW COLUMNS FROM tbl_name [LIKE
It is preferable to use
You must free the result set with mysql_free_result().
C API Function Descriptions
was added in MySQL 5.0.3. For older versions of MySQL, call
instead.
parameter.
wild
pointer to match all databases. Calling
wild].
result set for success.
[2942]
[2942]
[2942]
[2942]
[2941]
parameter.
wild
pointer to match all fields. Calling
SHOW COLUMNS FROM tbl_name
may contain the wildcard characters "%" or "_", or
wild
mysql_list_dbs()
if an error occurred.
NULL
may contain the wildcard characters "%" or "_", or
wild
mysql_list_fields()
wild].
instead of mysql_list_fields().
2165
is similar to executing the
is similar to executing the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents