在另一个数据库中的sybase插入中触发

时间:2019-06-17 13:48:08

标签: sybase

此触发器有问题吗?它假定在​​另一个数据库的表上插入日期字段。有人可以帮我吗?谢谢

ALTER TRIGGER "tri_ins" AFTER INSERT
ORDER 1 ON "DBA"."ta_1"
/* REFERENCING NEW AS new_name */
FOR EACH STATEMENT /* WHEN( search_condition ) */
BEGIN
    this i do and don't work


    INSERT INTO [t2].dbo.ta_2 
              (f_id, f_name)
        SELECT f_id, f_name
        FROM   inserted;
END

0 个答案:

没有答案