Submitted Questions

  • Trigger Body

    We have a trigger on database. In the trigger body we have created a body using dbms_output.put_line(********) ;How to fire this ?

  • NO_DATA_FOUND or TOO_MANY_ROW

    In PL/SQL if we write select statement with INTO clause it may return two exceptions NO_DATA_FOUND or TOO_MANY_ROW .To avoid these execeptions. How do you write SQL statement in alternative way?

    Ananda Kumar Behera

    • Nov 12th, 2013

    To avoid use:

    Code
    1. DECLARE a variable
    2. SELECT COUNT(*) INTO num WHERE <Condition OF your data retreival FOR SELECT INTO statement>;
    3. IF num==1 THEN
    4. EXECUTE your SELECT INTO statement
    5. END IF