Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a constraint verses Trigger check

Status
Not open for further replies.

zambrtp

Programmer
Jan 17, 2003
42
US
Can anyone tell me what the difference in performance if there is a contraint created to check data integrity vs a trigger created to do the same?
Thanks
 
Contraint is faster and more efficient as Oracle does the checking internally and the constraint can be deferred and will not become invalid. However a trigger can have funtionality which a constraint can not provide.

The ONE ( HP-UX + Solaris + AIX + Tru64 = Unix)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top