Sunday, 10 February 2013

SQL CREATE DATABASE Statement Syntax and Example

The CREATE DATABASE Statement
The CREATE DATABASE statement is used to create a database.

Syntax:
CREATE DATABASE Database_Name

Example:

Now we want to create a database called "my_db".We use the following CREATE DATABASE statement:

CREATE DATABASE My_Db

Database tables can be added with the CREATE TABLE statement.

Use Database :
When you are working on a Database tables , you can use the database as follows :

USE My_Db

No comments:

Post a Comment

Follow Me by Email

ExcelKingdom-Popular Posts

ExcelKingdom-Random Posts