Oracle 5.0 Reference Manual page 2168

Table of Contents

Advertisement

Description
Creates the database named by the
This function is deprecated. It is preferable to use
statement instead.
DATABASE
Return Values
Zero if the database was created successfully. 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.
Example
if(mysql_create_db(&mysql, "my_database"))
{
fprintf(stderr, "Failed to create new database.
}
20.6.6.9.
mysql_data_seek()
void mysql_data_seek(MYSQL_RES *result, my_ulonglong offset)
Description
Seeks to an arbitrary row in a query result set. The
the range from
This function requires that the result set structure contains the entire result of the query, so
mysql_data_seek()
mysql_use_result().
Return Values
None.
Errors
None.
20.6.6.10.
mysql_debug()
void mysql_debug(const char *debug)
C API Function Descriptions
[2942]
[2942]
[2942]
[2941]
mysql_error(&mysql));
to mysql_num_rows(result)-1.
0
may be used only in conjunction with mysql_store_result(), not with
parameter.
db
mysql_query()
Error: %s\n",
offset
2148
to issue an SQL
value is a row number. Specify a value in
CREATE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents