Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2003
    Posts
    9

    Exclamation Unanswered: dual table in db2 udb

    Hi,

    Does DB2 UDB have somrthing like Oracle dual table?

    Thanks,

    VasjaChlen

  2. #2
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    Can you explain what an Orcacle dual table is about?
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

  3. #3
    Join Date
    Dec 2002
    Posts
    134

    Re: dual table in db2 udb

    select 'test' from sysibm.sysdummy1
    or
    values 'test'

    -dmitri

  4. #4
    Join Date
    Dec 2003
    Posts
    9
    From oracle docs:
    <DUAL is a table automatically created by Oracle along with the data dictionary. DUAL is in the schema of the user SYS, but is accessible by the name DUAL to all users. It has one column, DUMMY, defined to be VARCHAR2(1), and contains one row with a value 'X'. Selecting from the DUAL table is useful for computing a constant expression with the SELECT statement. Because DUAL has only one row, the constant is returned only once. Alternatively, you can select a constant, pseudocolumn, or expression from any table, but the value will be returned as many times as there are rows in the table./>

    Thanks,

    VasjaChlen

  5. #5
    Join Date
    Dec 2003
    Posts
    9
    Thanks,

    It works.

    VasjaChlen

  6. #6
    Join Date
    Aug 2010
    Posts
    3
    Quote Originally Posted by VasjaChlen View Post
    Hi,

    Does DB2 UDB have somrthing like Oracle dual table?

    Thanks,

    VasjaChlen
    Hi

    SYSIBM.SYSDUMMY1 -

    Regards jami

  7. #7
    Join Date
    Aug 2008
    Location
    Toronto, Canada
    Posts
    2,369
    There were some interesting nicknames in 2003... "Vasja Chlen"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •