July 1999
Intermediate to advanced
502 pages
19h 52m
English
mysql_select_db
int mysql_select_db(MYSQL *mysql, const char *db)
Changes the current database. The user must have permission to access the new database. The function returns zero if the operation was successful and nonzero in the case of an error.
result = mysql_select_db(&mysql, "newdb");
Read now
Unlock full access