sql - Simplify easy LOOP queries to get rid of the LOOP -
are there ways simplify loop there no loop needed?
in 1 .. 2 loop if = 1 give_bonus (president_id, 2000000); elsif = 2 give_bonus (ceo_id, 5000000); end if; end loop;
you can call procedures:
give_bonus (president_id, 2000000); give_bonus (ceo_id, 5000000);
Comments
Post a Comment