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 name='&PROCEDURE_NAME' ;
查看trigger的定义:
select trigger_body from user_triggers where trigger_name='&trigger_name' ;
相关阅读:
相关推荐
zjuwangleicn 2020-06-25
ncomoon 2020-06-14
hanshangzhi 2020-06-12
一昕之代码 2020-02-20
dayi 2020-04-11
Accpcjg 2020-03-05
勇往直前 2020-03-04
勇往直前 2020-02-02
oArvin 2020-01-03
Omega 2020-08-16
zjyzz 2020-08-16
minggehenhao 2020-07-28
zhaojp0 2020-06-27
wenjieyatou 2020-06-17
liaomingwu 2020-06-16
hungzz 2020-06-16
muzirigel 2020-06-14
gsmfan 2020-06-14