IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Deafult Table Qualifier in Select Statement


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top