-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
  • 46,564
  • 22
  • 147
  • 188

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

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
-1

This query should work:

SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
hichris123
  • 9,955
  • 15
  • 53
  • 68