首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

oracle SQL高级编程第1章-札记1

2013-07-08 
oracle SQL高级编程第1章----笔记1merge into dept60_bonuses busing (select employee_id, salary, depar

oracle SQL高级编程第1章----笔记1
merge into dept60_bonuses busing (select employee_id, salary, department_idfrom hr.employeeswhere department_id = 60) eon (b.employee_id = e.employee_id)when matched thenupdate set b.bonus_amt = e.salary * 0.2where b.bonus_amt = 0delete where (e.salary > 7500)when not matched theninsert (b.employee_id, b.bonus_amt)values (e.employee_id, e.salary * 0.1)where (e.salary < 7500);

?

热点排行