Answered Questions

  • Where would you use implicit & explicit cursors?

    hira

    • Aug 8th, 2013

    When ever any query execute by the server in database sever itself create a implicit cursor ,which can not any control to the programmer but in case explicit cursor the programmer has to create it.and used for the data manipulation by following some rule......

  • What is the difference between TRIM and Truncate functions in oracle

    Deepika S Verma

    • Mar 14th, 2014

    TRUNC applies to numeric and Dates values Syntax- ------- TRUNC( number, [ decimal_places ] ) TRUNC ( date, [ format ] ) Example - --------- TRUNC(125.815) would retur...

    shiiva

    • Aug 6th, 2013

    We cannot compare Truncate & Trim. Truncate is a DDL command which deletes the content of a table completely, without effecting the table structure.

    Trim is a function which alters the output of one of the column output of a select query.

  • What is difference between % ROWTYPE and TYPE RECORD ?

     %  ROWTYPE  is to be used whenever query returns a entire row of a table or view. TYPE  rec  RECORD is to be used whenever query returns columns of differenttable or views and variables.      E.g.  TYPE  r_emp is RECORD (eno emp.empno% type,ename emp ename %type);     e_rec emp% ROWTYPE     cursor...

    Nupur

    • Apr 30th, 2015

    This is my understanding: Declare : eno employee.emp_id%type - specifically tells you that the variable type or data that it will be holding will be same as th e employee_id type in the employee tabl...

    Nupur

    • Apr 24th, 2015

    When we declare a var as %row type, then the variable holds all the column type attributes. Developer does not need to know what the individual column types are. Type record is used when we declare a variable to be of the records of the table.