Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Deafult Table Qualifier in Select Statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
ganga

New User


Joined: 16 Mar 2005
Posts: 7

PostPosted: Wed Mar 16, 2005 10:39 am    Post subject: doubt in db2.
Reply with quote

suppose if i am creating a table as
USERID.STAFF
DB2.STAFF.
if i am writing a query as select * from staff...
which staff it will select
is it db2.staff or userid.staff?
let me explain please
thanks&Regards
ganga
Back to top
View user's profile Send private message

brahmanandareddy

New User


Joined: 16 Dec 2004
Posts: 44
Location: Hyderabad

PostPosted: Wed Mar 16, 2005 2:08 pm    Post subject:
Reply with quote

Hi Ganga,

First, post ur queries in new topic...

Here the answers are...

suppose if i am creating a table as
USERID.STAFF
DB2.STAFF.
if i am writing a query as select * from staff...
which staff it will select

A. If u mention select * from staff....the staff (if it exists) table created under the userid currently u r logged in will be retrieved. If it is not there in the current user id u will have to specify userid for which u should have previleges to access it.


Thank You,
Brahmananda Reddy. K.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us