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 > oracle--->db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-18-06, 02:03
welyngj welyngj is offline
Registered User
 
Join Date: Feb 2004
Posts: 15
oracle--->db2

In oracle:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
に接続されました。
SQL> SELECT * FROM &1
2 ;
1に値を入力してください: DUAL
旧 1: SELECT * FROM &1
新 1: SELECT * FROM DUAL

D
-
X

Now i want to know how to realize the same feature in db2?
Reply With Quote
  #2 (permalink)  
Old 09-18-06, 08:41
GertK GertK is offline
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 96
Hi,

You have a lot of chinese symbols in your post which doesn't help to answer your question.

The 'select 1 from dual' can be changed to 'select 1 from sysibm.sysdummy1' or 'values (1)' but I don't know if this answers all your questions.

Regards, Gert
Reply With Quote
  #3 (permalink)  
Old 09-18-06, 21:13
welyngj welyngj is offline
Registered User
 
Join Date: Feb 2004
Posts: 15
sorry:
this is Japanese code.
Now i change to english.
i will appreciate for your help
In oracle:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
connected.
SQL> SELECT * FROM &1
2 ;
1Please input value. : DUAL
old 1: SELECT * FROM &1
new 1: SELECT * FROM DUAL

D
-
X
The important point is '&' in oracle.how to realize in db2?
Reply With Quote
  #4 (permalink)  
Old 09-19-06, 05:26
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
ok.. so '&' takes input at runtime in oracle while executing sql staements.
i havn't come across any such thing yet in db2 ....
may be its not supported in DB2.
"EXPERTS" on the forum will clear the doubt well.

--Rahul Singh
Reply With Quote
  #5 (permalink)  
Old 09-19-06, 05:37
welyngj welyngj is offline
Registered User
 
Join Date: Feb 2004
Posts: 15
thanks for telling me your experience.
do you know how to relize with unix shell.
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