语法错误啊,正确的如下(不要想着MSSQL的语法了)
set term !! /*说明结束符号是 !!*/
create trigger memotrig for/*不是on*/ memo
after delete //点火顺序有before,after,position
as
/*定义变量的语句必须写在这*/
/*declare variable varname vartype*/
begin /*必须用begin..end*/
update memo set seq_no=seq_no-1
where
memo.order_no=old.order_no
and
memo.seq_no>old.seq_no;
end; !! /*结束符号是 !! */
set term ; !!