How to view the definition of tables, views, indexes, stored procedures, and triggers in Oracle

Source: Internet
Author: User

How to view the definition of tables, views, indexes, stored procedures, and triggers in Oracle

View table definitions:

Sets long 999999

Select dbms_metadata.get_ddl ('table', upper ('& table_name') from dual;

View the view definition:

Select text from user_views where view_name = upper ('& view_name ');

View the index definition:

Select dbms_metadata.get_ddl ('index', upper ('& index_name') from dual;

Select index_name, index_type, table_owner, table_name from user_indexes where table_name = 'temp3 ';

View procedure definitions:

Select text from user_source where name = '& PROCEDURE_NAME ';

View the trigger definition:

Select trigger_body from user_triggers where trigger_name = '& trigger_name ';

Processing of single quotes and String concatenation during Oracle Storage

Oracle Stored Procedure learning notes

Tips for using temporary tables in Oracle stored procedures

Oracle stored procedure to export table structure

Oracle stored procedure and serialized write demo

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.