If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > dual table in db2 udb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-23-03, 12:36
VasjaChlen VasjaChlen is offline
Registered User
 
Join Date: Dec 2003
Posts: 9
Exclamation dual table in db2 udb

Hi,

Does DB2 UDB have somrthing like Oracle dual table?

Thanks,

VasjaChlen
Reply With Quote
  #2 (permalink)  
Old 12-23-03, 12:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
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
Reply With Quote
  #3 (permalink)  
Old 12-23-03, 13:41
chuzhoi chuzhoi is offline
Registered User
 
Join Date: Dec 2002
Posts: 134
Re: dual table in db2 udb

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

-dmitri
Reply With Quote
  #4 (permalink)  
Old 12-23-03, 13:43
VasjaChlen VasjaChlen is offline
Registered User
 
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
Reply With Quote
  #5 (permalink)  
Old 12-23-03, 13:52
VasjaChlen VasjaChlen is offline
Registered User
 
Join Date: Dec 2003
Posts: 9
Thanks,

It works.

VasjaChlen
Reply With Quote
  #6 (permalink)  
Old 02-02-11, 02:23
jamiforyou jamiforyou is offline
Registered User
 
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
Reply With Quote
  #7 (permalink)  
Old 02-02-11, 18:08
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
There were some interesting nicknames in 2003... "Vasja Chlen"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On