L
L
lohmag2017-05-10 18:33:55
Oracle
lohmag, 2017-05-10 18:33:55

Is there a way to select the code of all triggers?

Is there a way to select the code of all triggers in the database, rather than selecting one at a time?
SQL> select dbms_metadata.get_ddl('TRIGGER','trigger_name','owner') from dual;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2017-05-10
@Dronablo

Lots of options. Let's start with a simple one, if for some reason this is not enough - specify the task.

SELECT DBMS_METADATA.GET_DDL('TRIGGER', trigger_name, owner) FROM dba_triggers;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question