Advertisement
psi_mmobile

Untitled

Jun 4th, 2019
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. procedure setIsHomePoiCategoryFlag(p_old_poi_category_id in number, p_new_poi_category_id in number) as
  2. v_count number(10,0);
  3. begin
  4. update oc_poi_category set is_home_poi_category = 'Y' where oc_poi_category_id = p_new_poi_category_id;
  5.  
  6. select count(*) into v_count from vo_person_category
  7. where home_poi_category_id = p_old_poi_category_id;
  8.  
  9. if (v_count = 1) then update oc_poi_category set is_home_poi_category = 'N' where oc_poi_category_id = p_old_poi_category_id;
  10. end if;
  11.  
  12.  
  13. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement