DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Do I use a Trigger here?

Threaded View

  1. #2
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    create table fred(
    a number check(a in (0,1)),
    b number check(b in (0,1)),
    constraint cons1 check (b=0 or a=b))

    Always avoid a trigger if possible.
    Last edited by DaPi; 03-30-2006 at 08:19 AM.
    "The power of instruction is seldom of much efficacy except in those happy dispositions where it is almost superfluous" - Gibbon, quoted by R.P.Feynman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width