MySQL8.0大师之路:第9章:MySQL教程-9.4 创建表
1.创建表mysql> create table student(id int,name varchar(100),birth date);
2.查看当前数据库下已经创建的表
mysql> show tables;
3.要验证您的表是否是按预期方式创建的,请使用DESCRIBE语句:
mysql> desc student;
+-------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+-------+
| id | int | YES | | NULL | |
| name | varchar(100) | YES | | NULL | |
| birth | date | YES | | NULL | |
+-------+--------------+------+-----+---------+-------+
3 rows in set (0.00 sec)
desc 是describe的缩写。
页:
[1]