triggers

  • Is there a way to disable a trigger for a given update statement? I don't want to disable the entire trigger just disable it for one update statement.

    Thanks in advance

  • Wrap it all in a transaction:

    begin transaction

    disable trigger ...

    your update

    enable trigger ...

    commit

    I've done that and not had problems with it.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply