Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Help! Triggers VS Constraints
On 9 May 1997 19:58:55 GMT, rram_at_site.gmu.edu (Raghu Ram) wrote:
>Hi all!
>
>Can I write a trigger instead of saying
>"ALTER TABLE TABLE_CHILD
>ADD (CONSTRAINT CONSTRAINT_NAME FOREIGN KEY (COL1)
> REFERENCES TABLE_PARENT );"
You could but you would be writing lots of code to do something that is already
done for you.
>Is it true that constraints are actually triggers internally
>in oracle.
No.
>
>Thanks in advance for feedback
Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Bethesda MD
http://govt.us.oracle.com/ -- downloadable utilities