oracal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jay t
    New Member
    • Jan 2012
    • 1

    oracal

    what is use DUAL table. in oracal
  • rajujrk
    New Member
    • Aug 2008
    • 107

    #2
    the dual table is used in Oracle when you need to run SQL that does not logically have a table name
    Eg:

    Code:
    SELECT SYSDATE FROM DUAL;
    
    SELECT extract(YEAR FROM DATE '2011-08-22') FROM DUAL;
    
    SELECT TO_CHAR(SYSDATE, 'DD-MON-YYYY HH:MI:SS') FROM DUAL;

    Comment

    Working...