📜  oracle 获取触发器 ddl - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:00.732000             🧑  作者: Mango

代码示例1
SELECT DBMS_METADATA.get_ddl('TRIGGER', TRIGGER_NAME, OWNER)
FROM ALL_TRIGGERS        -- or DBA_TRIGGERS, USER_TRIGGERS
WHERE OWNER = 'swhema_name'
  AND TRIGGER_NAME = 'trigger_name';