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

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -