Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to list all tables that belongs to the current user?

627138Dec 18 2009 — edited Dec 22 2009
hi all

"select tblowner,tblname from tables where tblowner in (select user from dual);"

I want a list of all tables that belongs to the current user. I use the SQL above, but given "no rows selectd",but if
I replace the subquery with literal,like
"select tblowner,tblname from tables where tblowner = 'JFMDB');".

I got the list. why?

Thnk u very much!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2010
Added on Dec 18 2009
6 comments
4,509 views