该查询有什么问题?
alter table TableName enable trigger 'TriggerName'
错误是
Line 1, column 30
Could not execute statement.
ASA Error -131: Syntax error nera 'enable' on line 1
答案 0 :(得分:4)
错误消息来自Sybase SQL Anywhere(ASA),但您尝试使用的语法在ASA中无效,但它将在Adaptive Server(ASE)中。我don't think there is an equivalent in ASA。
答案 1 :(得分:0)
我在ASA论坛上更新了答案,Martin指出http://sqlanywhere-forum.sap.com/questions/389/how-to-temporary-disable-a-trigger-inside-a-procedure-and-enable-again?page=1#13221阅读详情。
总之,您可以使用SET OPTION FIRE_TRIGGERS = OFF;
或SET TEMPORARY OPTION FIRE_TRIGGERS = OFF;