Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOREIGN KEY (except for NULL) ... ?
Message
De
27/06/2008 16:56:20
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
01327054
Message ID:
01327382
Vues:
10
>>Live NULL in the Item.HeaderID columnn for products. You can also add constraint that wouldn't allow to change it to anything else for products.
>
>Thanks Segey... But I'm not sure what you mean.
>Here's what I have....
>

>ALTER TABLE [dbo].[tbSpa_Item] WITH CHECK ADD CONSTRAINT [FK_tbSpa_Item_tbSpa_Header] FOREIGN KEY([spi_SpaHeaderID])
>REFERENCES [dbo].[tbSpa_Header] ([sph_SpaHeaderID])
>

>
>Should I move the products into a separate table?

>Frank,

>If you don't have a good reason to keep them in one table, than split it into two tables.

That's kinda what I thought....
Thanks again, as always.
Thank you,
- Frank
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform