1
---修改部门名称为精英学院的老师工资增加1000元。
update ts set salary= salary+1000 where DepNo = '精英学院'
---查询出教工号为1001的教师信息。
select * from ts where number = 1001;
---找出所有其家庭地址为北小营的女教师的教工号、姓名及部门名称。
select number,name,depno from ts where sex = '女' and address= '北小营'
---查询出部门不是市场部和教务处的所有教职工的姓名、性别、部门和住址
select name,sex,depno,address from ts where depno is not '市场部';
---查询出工资在5千到1万之间教职工姓名和部门
select name,depno from ts where score BETWEEN 5000 and 10000;
---9.查询出家庭住址为空的教师姓名、性别和部门
select name ,sex,depname from teacher where address is null
---10.查询出年龄为30到40岁之间的女教师姓名和、部门和工资
select name ,sex,depname from teacher where age BETWEEN 30 and 40 AND sex = '女'
------------------------------------------------------------------
2
--ii.在题一创建好的数据表中任意添加5条数据
inser into shop values(1,'lara',23.33,'125'),(2,'lara',23.33,'125'),(3,'lara',23.33,'125'),(4,'lara',23.33,'125'),(5,'lara',23.33,'125')
--iii.查询id为1002的数据的姓名和价格
select name,price