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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -