Answered Questions

  • What  are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?

     %  TYPE  provides  the data type of a variable or a database column to that variable. % ROWTYPE  provides the record type that represents a entire row of a table or view or columns selected in the cursor. The advantages are : I. Need not  know about variable's data typeii.  If  the  database  definition of a column in a table changes, the...

    PRADEEP

    • Oct 16th, 2012

    %rowtype is associated entire table(if we want to declare all columns then we need to declare %rowtype).

    %type is associated with one column .(if we want to declare entire column then we need to declare %type).

    Yaseen

    • Aug 9th, 2012

    If using %type and %rowtype , no need to know the the data type of the table column . and once the development is finished , the type of column is changed it will not effect the coding.

  • What is the basic structure of PL/SQL ?

     PL/SQL  uses  block  structure  as its basic structure. Anonymous blocks or nested blocks can be used in PL/SQL.

    g_sidhu

    • Feb 16th, 2008

    PL/SQL is a block-structured language, meaning that programs can be divided into logical blocks. A PL/SQL block consists of up to three sections: declarative (optional), executable (required), and exception handling (optional).

    Me

    • Oct 5th, 2007

    DeclarationBeginException HandlingEnd