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

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -