|
Question : Does SQL have a describe command that gives outputs the table structure?
|
|
We are trying to find a SQL command that will help us find the table structure of a database. We are talking about 200+ tables on a database. We will be converting from SQL Server to Oracle.
|
|
Answer : Does SQL have a describe command that gives outputs the table structure?
|
|
If you run this sql and enter in the schema owner you should get a describe list of your tables... ############################ set echo off feed off spool desc_tabs.sql prompt set pagesize 2000 linesize 80 feed off echo off prompt spool tablelist
select 'describe '||owner||'.'||table_name from all_tables where owner = 'PLACEOWNERINCAPS HERE' / prompt spool off spool off @desc_tabs.sql
|
|
|