小说网站 搜小说 无限网 烟雨红尘 小说爱好者 免费小说 免费小说网站

API创建/更新员工联系电话

DECLARE 
       ln_phone_id                              PER_PHONES.PHONE_ID%TYPE; 
       ln_object_version_number    PER_PHONES.OBJECT_VERSION_NUMBER%TYPE; 
 

BEGIN 
   -- Create or Update Employee Phone Detail 
   -- ----------------------------------------------------------- 
    hr_phone_api.create_or_update_phone 
    (   -- Input data elements 
        -- ----------------------------- 
        p_date_from                             => TO_DATE('13-JUN-2011'), 
        p_phone_type                          => 'W1', 
        p_phone_number                   => '9999999', 
        p_parent_id                              => 32979, 
        p_parent_table                         => 'PER_ALL_PEOPLE_F', 
        p_effective_date                       => TO_DATE('13-JUN-2011'), 
        -- Output data elements 
        -- -------------------------------- 
        p_phone_id                              => ln_phone_id, 
        p_object_version_number    => ln_object_version_number 
     ); 
  
 COMMIT; 


EXCEPTION 
      WHEN OTHERS THEN 
                    ROLLBACK; 
                     dbms_output.put_line(SQLERRM); 
END; 


posted on 2013-12-29 13:23  王小航  阅读(246)  评论(0编辑  收藏  举报

导航