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 > Is there a user can refer to many schemas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-30-04, 02:45
newhu114 newhu114 is offline
Registered User
 
Join Date: Jul 2004
Posts: 17
Is there a user can refer to many schemas

In oracle, I know that a user only refer to a shcema. In DB2,is there a user can refer to many schemas
Reply With Quote
  #2 (permalink)  
Old 07-30-04, 03:18
cgprakash cgprakash is offline
Registered User
 
Join Date: Feb 2002
Posts: 96
Yes. You can refer it by schema.tablename
eg:
select * from schema1.table1
select * from schema2.table2
select * from schema3.table3


If you create tables/views by USER1, then you are not necessary to refer by schema.tablename (select * from table1 --> will do). But other users have to use schema.tablename.

Regards
Prakash
Reply With Quote
  #3 (permalink)  
Old 08-02-04, 02:34
hurmavi hurmavi is offline
Registered User
 
Join Date: Jan 2004
Location: Europe, Finland, Helsinki
Posts: 60
Yep

And in DB2 for z/OS environment, you can use SET CURRENT PACKAGESET statement to obtain dynamic schema selection.

Cheers, Bill
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