Oracle: SQL query to find all the triggers belonging to the tables?

前端 未结 4 1868
再見小時候
再見小時候 2020-12-05 03:40

how can i find all the triggers that belong to a table?

相关标签:
4条回答
  • 2020-12-05 04:21

    Another table that is useful is:

    SELECT * FROM user_objects WHERE object_type='TRIGGER';
    

    You can also use this to query views, indexes etc etc

    0 讨论(0)
  • 2020-12-05 04:33

    Check out ALL_TRIGGERS:

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2107.htm#i1592586

    0 讨论(0)
  • 2020-12-05 04:43

    The following will work independent of your database privileges:

    select * from all_triggers
    where table_name = 'YOUR_TABLE'
    

    The following alternate options may or may not work depending on your assigned database privileges:

    select * from DBA_TRIGGERS
    

    or

    select * from USER_TRIGGERS
    
    0 讨论(0)
  • 2020-12-05 04:45

    Use the Oracle documentation and search for keyword "trigger" in your browser.

    This approach should work with other metadata type questions.

    0 讨论(0)
提交回复
热议问题