回覆列表
  • 1 # 使用者8262151785062

    CREATE TRIGGER TR1 ON dbo.sc

    FOR INSERT

    AS

    select * from sc where 學號=(select 學號 from inserted)

    CREATE TRIGGER TR2 ON dbo.sc

    FOR delete

    AS

    DECLARE @ErrNo int, @ErrMsg varchar(255)

    if ( select count(*) from sc ) =1

    begin

    goto error

    end

    RETURN

    error:

    raiserror @errno @errmsg

    rollback transaction

  • 中秋節和大豐收的關聯?
  • 油混能自己改裝成插混嗎?