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

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -