1、查看表
2、看表结构
3、以创建学生表为例
create table student(
sno char(5) primary key not null,
sname char(8) not null,
ssex enum('女','男') default '男',
sage tinyint,
sdept varchar(20));
4、查询表的创建结构
mysql> show create table student\G;
*************************** 1. row ***************************
Table: student
Create Table: CREATE TABLE `student` (
`sno` char(5) NOT NULL,
`sname` char(8) NOT NULL,
`ssex` enum('女','男') DEFAULT '男',
`sage` tinyint(4) DEFAULT NULL,
`sdept` varchar(20) DEFAULT NULL,
PRIMARY KEY (`sno`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8