导航:首页 > 数据处理 > 数据库成绩包括什么

数据库成绩包括什么

发布时间:2024-10-03 22:29:49

数据库建一张表,成绩表,姓名,学号,语文分,数学分,英语分,总成绩 ,造十条数据

create table score(

id int(12) PRIMARY key auto_increment,

student_num varchar(12) not null,

student_name varchar(50) not null,

chinese_score int(3) DEFAULT 0,

math_score int(3) DEFAULT 0,

english_score int(3) DEFAULT 0,

sum_score int(3) DEFAULT 0

)ENGINE=InnoDB DEFAULT CHARSET=utf8;

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000001','小明',90,98,98,chinese_score+math_score+english_score);

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000002','小二',91,98,98,chinese_score+math_score+english_score);

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000003','小兰',94,98,95,chinese_score+math_score+english_score);

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000004','小十',90,98,96,chinese_score+math_score+english_score);

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000005','小白',92,98,99,chinese_score+math_score+english_score);

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000006','小绿',90,96,94,chinese_score+math_score+english_score);

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000007','小蓝',95,98,98,chinese_score+math_score+english_score);

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000008','小青',91,91,98,chinese_score+math_score+english_score);

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000009','小红',94,92,95,chinese_score+math_score+english_score);

insert into score(student_num,student_name,chinese_score,math_score,english_score,sum_score)values('000010','小橙',99,100,100,chinese_score+math_score+english_score);

阅读全文

与数据库成绩包括什么相关的资料

热点内容
移动数据网络如何使用 浏览:437
今年什么直销产品好做 浏览:536
理财产品跌完了怎么办 浏览:760
为什么要做手游代理 浏览:864
莒溪农副产品有什么 浏览:994
什么产品去痘痘效果最好阿达帕林 浏览:275
ps5全部信息是什么 浏览:88
工会的技术等级怎么写 浏览:988
美团如何做城市代理 浏览:7
人才代理费是什么 浏览:432
武汉劳务市场哪里最便宜 浏览:449
数据和程序是什么形式 浏览:590
晋中5g技术有哪些 浏览:577
哪些创业机会是技术进步带来的 浏览:141
郑州有哪些烟交易市场 浏览:281
oppo手机如何删除设置里的信任的代理 浏览:461
阿里怎么处理虚假交易 浏览:348
如何学好运用市场营销 浏览:60
电度表内电池没电怎么看数据 浏览:683
在市场卖杂货起什么名字 浏览:47