Home > Database > Mysql Tutorial > Oracle查看表、视图、索引、存储过程和触发器的定义的方法

Oracle查看表、视图、索引、存储过程和触发器的定义的方法

WBOY
Release: 2016-06-07 17:32:37
Original
1650 people have browsed it

Oracle查看表、视图、索引、存储过程和触发器的定义的方法

Oracle查看表、视图、索引、存储过程和触发器的定义的方法

查看表的定义:

set long 999999

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

查看视图的定义:

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

查看index的定义:

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';

查看procedure的定义:

select text from user_source where ;

查看trigger的定义:

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

相关阅读:

Oracle存储过程中单引号及字符串拼接处理

Oracle存储过程 学习笔记

Oracle存储过程中临时表的使用技巧

Oracle存储过程实现导出表结构

Oracle存储过程和序列化写的demo 

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template