课本P78实验4.2-3
#(1)创建数据库stuexpm
#(2)创建studentinfo表,
显示studentinfo表的基本结构 :
p77表4.10
插入信息:
表4.11
表4.12
插入语序的表格式:
insert into ****
values
(),
(),
(),
select *from ****
#(3)由studentinfo表使用复制方式创建studentinfo1表
#(4)在studentinfo表中增加一列stuno,添加到表的第1列,不为空,取值唯一并自动增加,显示studentinfo表的基本结构
#(5)将studentinfo1表的address 列修改 为city ,将数据类型改为char,可为空,默认值为"北京",显示studentinfo1表的基本结构
#(6)将studentinfo1表的speciality 列修改为school,将数据类型改为char,可为空,默认值为"计算机学院"
#(7)将studentinfo1表的city列的默认值修改为"上海"
#(8)将studentinfo1表的city列的类型修改为varchar(20),并移到列Name之后
#(9)在studentinfo1表中删除stuno列
#(10)将studentinfo1表更名为studentinfo2表
#(11)删除studentinfo2表