Sponsered Links
Categories
Sponsered Links

MySQL Creating, Showing, Selecting and Removing Databases

 

This is a simple MySQL Creating, Showing, Selecting and Removing Databases query.

Creating Database


CREATE
DATABASE [IF NOT EXISTS] database_name;

CREATE DATABASE test;

Showing Database

SHOW DATABASES;

+--------------------+
| Database                              |
+--------------------+
| information_schema |
| test               |
| mysql              |
+--------------------+
8 rows in set (0.00 sec)

 

Selecting Database

USE database_name;

USE test;

Removing Database

DROP DATABASE [IF EXISTS] database_name;

CREATE DATABASE IF NOT EXISTS temp_database;
SHOW DATABASES;
DROP DATABASE IF EXISTS temp_database;

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved