SQL Server数据库表的增删改查(insert into/delete/update/select)
作者:互联网
某数据库中有如下学生成绩表Score
Id为整型、主键、自增
1 添加一条成绩信息:姓名StuName为王磊,科目名称Subject为Java编程,成绩Result为92
insert into score(StuName,Subject,Result) Values('王磊',‘Java编程’,92);
2 删除科目为语文的成绩信息
delete from score where subject = '语文';
3 将学生姓名StuName为李红的成绩改为76
Update Score Set Result= 76 Where Stuname = '李红'
4 查询成绩Score大于等于80的所有信息
Select * From Score Where Result >= 80;
标签:StuName,insert,Java,into,改查,update,Score,Result,成绩 来源: https://blog.csdn.net/qq_30311255/article/details/114130223