SQL语句、程序设计题

2025-03-24 11:07:02
推荐回答(3个)
回答1:

(1) 写出系号为01的所有教师的信息的SQL语句;
select * from 教师 where 系号='01'
(2) 请写出将“欧阳秀”的工资增加200元SQL语句。
update 教师 set 工资=工资+200 where 姓名='欧阳秀'
(3) 请写出工资在2000-3000之间的教师的姓名。
select 姓名 from 教师 where 工资 between 2000 and 3000

回答2:

select * from 教师 where 系号=01

select 工资+200 as 修改后工资 from 教师 where 姓名=欧阳秀

select 姓名 from 教师 where 工资 between 2000 and 3000

回答3:

1:select * from 教师 where 系号='01'
2:update 教师 set 工资=工资 + 200 where 姓名='欧阳秀'
3:select 姓名 from 教师 where 工资>2000 and 工资<3000