SYSTRIGGERS 视图的每一行都描述数据库中的一个触发器。该视图还包含自动为具有参照触发操作(例如 ON DELETE CASCADE)的外键定义创建的触发器。
在以下的 SQL 语句中提供了组成该视图的表和列。要了解有关特定表或列的详细信息,请使用该视图定义下所提供的链接。
ALTER VIEW "SYS"."SYSTRIGGERS"( owner, trigname,tname,event,trigtime,trigdefn ) as select u.user_name,trig.trigger_name,tab.table_name, if trig.event = 'I' then 'INSERT' else if trig.event = 'U' then 'UPDATE' else if trig.event = 'C' then 'UPDATE' else if trig.event = 'D' then 'DELETE' else if trig.event = 'A' then 'INSERT,DELETE' else if trig.event = 'B' then 'INSERT,UPDATE' else if trig.event = 'E' then 'DELETE,UPDATE' else 'INSERT,DELETE,UPDATE' endif endif endif endif endif endif endif,if trig.trigger_time = 'B' or trig.trigger_time = 'P' then 'BEFORE' else if trig.trigger_time = 'A' or trig.trigger_time = 'S' then 'AFTER' else if trig.trigger_time = 'R' then 'RESOLVE' else 'INSTEAD OF' endif endif endif,trig.trigger_defn from SYS.ISYSTRIGGER as trig join SYS.ISYSTAB as tab on(tab.table_id = trig.table_id) join SYS.ISYSUSER as u on u.user_id = tab.creator where trig.foreign_table_id is null |
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2013, SAP 股份公司或其关联公司. - SAP Sybase SQL Anywhere 16.0 |