添加30条数据(3)求每门课的平均成绩,并把结果存入average表;解:USEh:\数据库实验作业二\实验二\score表
dbfEXCLUSIVEselescore表
Cno,avg(score表
score)as平均分;fromscore表;intotableaverage;groupbyscore表
CnoBrowse截图:(4)将学生“马丽鹃”的出生日期改为“1982
20”;解:USEh:\数据库实验作业二\实验二\student表
dbfEXCLUSIVEeditforsname='马丽娟'截图:(5)将所有学生的zipcode属性列值填补上;解:replZipcodewith230006replallZipcodewith230006USEh:\student
dbfEXCLUSIVEmodifystructurereplallZipcodewith230006截图:(6)将average表中的所有课程的平均成绩置零;解:USEh:\数据库实验作业二\实验二\average
dbfEXCLUSIVEreplall平均分with0截图:(7)删除average表中的课程号为‘c007’的平均成绩记录;解:USEh:\数据库实验作业二\实验二\average
dbfEXCLUSIVEdeleteforCno='C007'browsepackBrowse截图:(8)删除所有average表中平均成绩记录;解:deleteallpackbrowse截图:(9)建立一个临时学生信息表(tstudent),删除该表中的学号前六位为‘001011’的所有学生记录
解:Select*;fromstudent;intocursortstudent;wheresubstr(Sno,1,6)
='001011'bro