站内搜索: 请输入搜索关键词
当前页面: 图书首页 > MySQL Tutorial

MySQL Tutorial

[ Directory ] Previous Section Next Section

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.

    [ Directory ] Previous Section Next Section