Subject | Re: [firebird-support] What is better? use integrity referencial or triggers? |
---|---|
Author | Martijn Tonies |
Post date | 2003-11-27T08:33:39Z |
Hi,
http://www.cvalde.net/document/declaRefIntegVsTrig.htm
Any optimizer/index related problems decreased since Fb1.5...
constraint. However, you cannot create a FK that's "pointing"
to a unique index, only to PK and Unique constraints.
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> for the check of the primary keyA Primary Key constraint.
>, and the foreign key?, what isA Foreign Key constraint.
> better?, declare it trought constraints?, or do trought declareNo, I would throw triggers out of the window any day for this.
> triggers that do the job?.
http://www.cvalde.net/document/declaRefIntegVsTrig.htm
Any optimizer/index related problems decreased since Fb1.5...
> I mean, here exist a constraint primary key, but what if i define aInternally, Firebird will already create a unique index for your
> index unique?, what is better?
constraint. However, you cannot create a FK that's "pointing"
to a unique index, only to PK and Unique constraints.
> or.. if i have a foreign key? constraint?, with a constraint i can't?
> specify the cardinality of the relation.
> the only way that i can check that is programing with triggers.With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com