how to update hire date of employee by api
来源:互联网 发布:软件项目管理心得体会 编辑:程序博客网 时间:2024/05/16 14:43
DECLARE x_warn_ee VARCHAR2(1); p_effective_date DATE; CURSOR cur_people IS SELECT * FROM per_all_people_f;BEGIN FOR rec_people IN cur_people LOOP BEGIN hr_change_start_date_api.update_start_date(p_validate => FALSE, p_person_id => rec_people.person_id, p_old_start_date => rec_people.effective_start_date, p_new_start_date => to_date('2013/01/01', 'yyyy/mm/dd'), p_update_type => 'E', p_applicant_number => NULL, p_warn_ee => x_warn_ee); EXCEPTION WHEN OTHERS THEN dbms_output.put_line('person_id : ' || rec_people.person_id); dbms_output.put_line(SQLERRM); dbms_output.put_line('==============================='); END; END LOOP;END;
若员工之间从属关系:同时更新上属和下属时,更新上属时会报“ORA-20001: 此日期的分配主管不存在。”所以建议根据从属关系的层数N,执行上述过程N次。
0 0
- how to update hire date of employee by api
- How to Hire a Programmer
- How to Enable Creation of Employee Type Suppliers
- How to switch off the automatic assignment of employee relationship
- How to update windows by manual
- How to find second highest or maximum salary of Employee in SQL - Interview question
- [FAQ19780]How to auto update apn database by OTA
- How to update the version of pgfplots in MiKTeX
- How I Hire Programmers
- how to update codelite
- how to update ruby
- How to update things
- How to record log of specified package by using log4j
- How to power on/of the machine by KVM
- How to SUM and GROUP BY of JSON data?
- An example of how to do a simulation by LAMMPS
- How to query_posts using meta_query to orderby meta_key AND have a secondary sort by date?
- HTML5 File API: How to see the result of readAsText()
- CSS3
- HDU4639
- 实现后台查询到的下拉项在前台显示
- DIY电脑硬件之该不该买固态硬盘
- MyEclipse安装maven的问题:Unable to update index for central|http://repo1.maven.org/maven2
- how to update hire date of employee by api
- cocos2dx socket 通信
- javascript 格式化日间
- 开源分布式系统-TFS-安装及使用简介
- GeoMedia 简介
- JQuery异步提交
- PPT文件丢失有什么方法恢复
- 十步完全理解SQL
- Linux and Unix wget command