Questions tagged «database-trigger»

5
创建或替换触发器postgres
我想“创建或替换” postgres表的触发器。但是,没有这样的sql表达式。 我看到我可以先做一个“ DROP TRIGGER IF EXISTS”(http://www.postgresql.org/docs/9.5/static/sql-droptrigger.html)。 我的问题是: 是否有比(DROP+CREATE触发器)更推荐/更好的选择 有没有为什么没有这样的“创建或替换触发器”的原因(这可能意味着我不应该这样做) 请注意,Create or Replace Trigger在oracle(https://docs.oracle.com/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm)中有一个“ ” 。然后, 这样的命令是否计划用于Postgres?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.