what tables are returned by using (in oracle)
select * from tab
and
select * from all_tables
I would like to know the difference between two.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
tabis an ancient data dictionary table that should never be used. It exists solely to provide backwards compatibility for scripts that were written potentially decades ago.tabdoes not get updated as new object types and new features get added.all_tablesgives you information about all the tables that you have access to.tabgives you information about tables, views, and synonyms that you own (making it more similar to views likeuser_tables,user_synonyms, anduser_views). It doesn’t know about things like the recycle bin, though, sotabwill show you all the tables with names likeBIN$+K4PlriXSGetpagyHCvBGA==$0that are in the recycle bin. Realistically, any object types that have been added at least since the Oracle 7 days are likely to create problems for legacy data dictionary tables liketab.