--增加等级列level,初始级别均为D
ALTER TABLE student1
Add level char(2)
UPDATE student1
SET level='D'
--等级制
--A:9010090
update student1
SET level = 'A'
where score >= 90
--B:70
update student1
set level = 'B'
where score >= 70 and score < 90
--C:60~70
update student1
set level = 'C' where score >= 60 and score < 70
--D:<60
update student1
set level= 'D'
where score<60
SQL中增添列名显示列名无效
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
0条回答 默认 最新
悬赏问题
- ¥15 matlab有限元法求解梁带有若干弹簧质量系统的固有频率
- ¥15 找一个网络防御专家,外包的
- ¥100 能不能让两张不同的图片md5值一样,(有尝)
- ¥15 informer代码训练自己的数据集,改参数怎么改
- ¥15 请看一下,学校实验要求,我需要具体代码
- ¥50 pc微信3.6.0.18不能登陆 有偿解决问题
- ¥20 MATLAB绘制两隐函数曲面的交线
- ¥15 求TYPCE母转母转接头24PIN线路板图
- ¥100 国外网络搭建,有偿交流
- ¥15 高价求中通快递查询接口