实验二一、实验目的(1)掌握查询分析器的使用。(2)掌握通过 SQL语句创建表的方法。(3)掌握通过 SQL语句修改表结构的方法。(4)掌握通过 SQL语句添加、修改、删除表数据的方法。二、实验内容1、通过 SQL语句删除表用SQL语句在数据库 Student_info中删除实验一创建的Student 表、 Course 表、 SC表。1、选择 Student_info数据库,在该数据库环境中“新建查询”,然后完成删除操作2、分别填写如下SQL语言①、 droptableStudent②、 droptableCourse③、 droptableSC3、删除操作完成2、通过 SQL语句创建表用SQL语句在数据库 Student_info中创建实验一中的Student 表、 Course 表、 SC表,结构如实验一中表 2、表 3、表 4(即创建出空表即可)所示①、创建 Student 表createtableStudent (Sno char ( 8)primarykey ,Sname varchar ( 8)notnull,Sex char ( 2)notnull,Birthsmalldatetimenotnull,Classnochar ( 3)notnull,Entrance_datesmalldatetimenotnull,Home_addr varchar ( 40))②、创建 Course表createtableCourse (Cno char ( 3)primarykey ,Cname varchar ( 20)notnull,Total_periorsmallintcheck ( Total_perior>0),Credittinyintcheck ( Credit <=6 and credit>0))③、创建 SC表createtableSC(Sno char ( 8)notnull,Cno char ( 3)notnull,Grade tinyintcheck ( Grade>=0 and Grade<=100),primarykey( Sno, Cno),foreignkey( Sno)referencesStudent ( Sno),foreignkey( Cno)referencesCourse ( Cno))3、通过 SQL语句管理表结构(1)添加和删除列a. 给Student 表增加身高(以米单位)Stature 列 ,类型为 numeric(4 ,2) , 允许为空值,且身高值需小于米。altertableStudentadd Staturenumeric ( 4, 2)check ( Stature <= and Stature >=0)b. 给Student 表增加所在系 Sdept 列,字符型,长度2,不允许为空值。altertableStudentadd Sdeptchar ( 2)notnullc. 给Student 表增加邮政篇码Postcode 列,字符型,长度为6,可以为空,若不为空时,则要求其值只能出现数字,不能是其它字符。altertableStudentadd Postcodechar ( 6)check ( PostcodeLike'[1-9][0-9][0-9][0-9][0-9][0-9]')d. 删除 Student 表中身高 Stature 列。①、添加 Stature 列时就已知该列存在约束条件,若要删除该列,必须先删除约束条件,则首先...