-2

I want to retrieve all table names and column names IN A SCHEMA. So if I am in schema scott it should only show all the tables present in scott.

And can the query below only retrieve the tables in a schema?

Select * from tab;
ErikE
  • 48,881
  • 23
  • 151
  • 196
user3324373
  • 13
  • 1
  • 2

2 Answers2

4
select *
from all_tab_columns
where owner = 'SCOTT'

More details in the manual: http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_part.htm#i125539

-1

This query should work:

SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
hichris123
  • 10,145
  • 15
  • 56
  • 70