MySQL下建立表

连接到MySQL之后,

执行:

复制代码
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> CREATE TABLE example (
    ->          id INT,
    ->          data VARCHAR(100)
    ->        );
Query OK, 0 rows affected (0.05 sec)

mysql> 
复制代码

然后退出:

mysql> quit
Bye
[root@server ~]# 






你可能感兴趣的:(数据库)