A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 落叶heart 中级黑马   /  2016-4-11 23:54  /  534 人查看  /  1 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

假设表(employee)中已有多条数据,完成下列操作。
a.查询出奖金(bonus)大于200元的所有员工
  b. 查询所有员工详细信息,用部门编号(deptId)降序排序
  c. 将姓名(name)为tom的员工薪水(salary)修改为5000元。
  d. 查询姓名中含有m的员工信息。
  e. 删除姓名(name)为jack的员工的信息。

1 个回复

倒序浏览
slelect * from employee where bonus>200
slelect * from employee order by deptId desc
update employee set salary=5000 where name='tom'
slelect * from employee where name like %m%
DELETE from employee where name='jack'
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马