A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mariadb.com/docs/connectors/mariadb-connector-c/api-functions/mysql_select_db below:

mysql_select_db | MariaDB Documentation

mysql_select_db | MariaDB Documentation 14-day MaxScale Trial: Explore the latest version of our advanced database proxy! Start Trial CtrlK Download MariaDBContact Us Powered by GitBook On this page

Was this helpful?

Edit on GitHub Export as PDF
  1. Connector/C
  2. MariaDB Connector/C API Functions
mysql_select_db Syntax
int mysql_select_db(MYSQL * mysql,
                    const char * db);
Description

Selects a database as default. Returns zero on success, non-zero on failure

The SQL command SELECT DATABASE() will return the name of the default database.

The default database can also be set by the db parameter in mysql_real_connect().

Previousmysql_row_tell Nextmysql_send_query

Last updated 20 days ago

Was this helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4