Advertisement
psi_mmobile

Untitled

Jun 4th, 2019
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. procedure setIsHomePoiFlag(p_old_poi_category_id in number, p_new_poi_category_id in number) as
  2. begin
  3. update oc_poi_category set is_home_poi_category = 'Y' where oc_poi_category_id = p_new_poi_category_id;
  4.  
  5. update oc_poi_category set is_home_poi_category = 'N' where oc_poi_category_id = p_old_poi_category_id and not exists (
  6. select 1 from vo_person_category where home_poi_category_id = p_old_poi_category_id);
  7. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement