![](https://i-blog.csdnimg.cn/blog_migrate/3b3061ab00b42f0345d848811c4ade5c.jpeg)
(1)创建数据库 stuexpm。
(2)创建StudentInfo表,显示StudentInfo表的基本结构。
(3)由StudentInfo 表使用复制方式创建 StudentInfol表。
(4)在StudentInfo表中增加一列 StuNo,添加到表的第1列,不为空,取值唯一并自增加,显示 StudentInfo 表的基本结构。
(5)将StudentInfol表的Address列修改为City,将数据类型改为char,可为空,默认值为“北京”,显示 StudentInfol 表的基本结构。
(6)将StudentInfol表的Speciality列修改为School,将数据类型改为char,可为空,默认值为“计算机学院”。
(7)将 StudentInfol 表的 City列的默认值修改为“上海”。
(8)将StudentInfol 表的City列的类型修改为 varchar(20),并移到列 Name之后。
(9)在 StudentInfo1 表中删除 StuNo列。
(10)将 StudentInfo1 表更名为 StudentInfo2 表。
(11) 删除 StudentInfo2 表。
(1)创建数据库 stuexpm。
create database stuexpm;
![](https://i-blog.csdnimg.cn/blog_migrate/953f1435b4f75e0815a41fbccf275491.png)
(2)创建StudentInfo表,显示StudentInfo表的基本结构。
![](https://i-blog.csdnimg.cn/blog_migrate/16b577b83ffdf6dc9770966498fa3a12.png)
(3)由StudentInfo 表使用复制方式创建 StudentInfol表。
![](https://i-blog.csdnimg.cn/blog_migrate/91109242a67c5c22d09ee70c822d29fd.png)
(4)在StudentInfo表中增加一列 StuNo,添加到表的第1列,不为空,取值唯一并自增加,显示 StudentInfo 表的基本结构。
![](https://i-blog.csdnimg.cn/blog_migrate/35edf0d2d3056ebfc4e965e1ee8b26ca.png)
(5)将StudentInfol表的Address列修改为City,将数据类型改为char,可为空,默认值为“北京”,显示 StudentInfol 表的基本结构。
![](https://i-blog.csdnimg.cn/blog_migrate/08fc79bba5c8903e47df7deac359275b.png)
(6)将StudentInfol表的Speciality列修改为School,将数据类型改为char,可为空,默认值为“计算机学院”。
![](https://i-blog.csdnimg.cn/blog_migrate/c79332761e8698afcec5399ad81e383e.png)
(7)将 StudentInfol 表的 City列的默认值修改为“上海”。
![](https://i-blog.csdnimg.cn/blog_migrate/69dc22a192d7fd392d44c8199cb473e0.png)
(8)将StudentInfol 表的City列的类型修改为 varchar(20),并移到列 Name之后。
![](https://i-blog.csdnimg.cn/blog_migrate/60343eb7e42a9701b8ca1bf78f54687a.png)
(9)在 StudentInfo1表中删除 StuNo列。
![](https://i-blog.csdnimg.cn/blog_migrate/c10f6559cd87f8ed10ad48ff3250dd45.png)
(10)将 StudentInfo1 表更名为 StudentInfo2 表。
![](https://i-blog.csdnimg.cn/blog_migrate/40d6c1c359ebbe970f00a7b100a7a551.png)
(11) 删除 StudentInfo2 表。
![](https://i-blog.csdnimg.cn/blog_migrate/e59b1e12f069037f6c099c70dcf05680.png)