MySQL Wildcards

MySQL Wildcards

MySQL Aliases

MySQL Aliases

MySQL Data Types

MySQL Data Types

MySQL Interview Questions

MySQL Interview Questions and Answers


MySQL SELECT Database

The SELECT DATABASE is used to select particular database to work with. An error occurs if the database not exists.

Syntax

USE databasename;

SELECT DATABASE Example

The following MySQL statement select perticular database:

Example

USE myDB;

You can use MySQL Command Line Client to select database. It will look like this:

Note: In order to create database, you must have admin privilege. All the database names, table names and table fields name are case sensitive. You must have to use proper names while giving any SQL command.