Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/lsp4you/public_html/connect.php on line 2 LSP4YOU - Learner's Support Publications

SQL - SELECT DATABASE

When there are multiple databases in the SQL Schema, we would need to select a database before starting any operations to be performed on data.
The SQL USE statement is used to select any existing database from the SQL schema.
The basic syntax of USE statement is:

USE <Database Name>;

For example:
mysql> use testdb;
Database changed
mysql>