How can I describe a table in Oracle without using the DESCRIBE command?

前端 未结 4 2013
我寻月下人不归
我寻月下人不归 2020-11-29 04:16

I\'m having a hard time with a class I am taking. We need to write an Oracle script that will act just like the DESCRIBE command. The book we are using describes how to work

4条回答
  •  盖世英雄少女心
    2020-11-29 05:14

    You can also retrieve the entire command that can be used to recreate the table:

    select dbms_metadata.get_ddl('TABLE','','') from dual;
    

    提交回复
    热议问题