Creating a Database


After design, the first step in creating a database is, logically enough, to tell MySQL that we want to create a new database. We do this with the CREATE DATABASE SQL statement, as follows :

 
 create database employee; 

You can check to see that this statement worked by executing the command

 
 show databases; 

You should now see the employee database listed among the databases in the system.

We now have an empty database, waiting for some tables to be created.



MySQL Tutorial
MySQL Tutorial
ISBN: 0672325845
EAN: 2147483647
Year: 2003
Pages: 261

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net