Subject | Re: [firebird-support] Foreign key without name |
---|---|
Author | Milan Babuskov |
Post date | 2010-03-25T17:58:58Z |
Nico Callewaert wrote:
spend researching the system tables and learning how admin. tools do it
and then replicate that into your upgrade scripts. If you use Firebird
1.x this would also require some programming because EXECUTE BLOCK is
not available.
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================
> What if you create a table with a foreign key like this :No. You should name your constraints.
>
> AFIELD NOT NULL REFERENCES ATABLE(......
>
> Is this good practice ?
> What if ever the Foreign key has to be deleted through a script, could it be that this will be big trouble ?Trouble? Yes. Big? It depends how much of your time you are willing to
spend researching the system tables and learning how admin. tools do it
and then replicate that into your upgrade scripts. If you use Firebird
1.x this would also require some programming because EXECUTE BLOCK is
not available.
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================