Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constraints in SQL Server 2000
Message
De
14/03/2008 23:08:00
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Constraints in SQL Server 2000
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01302373
Message ID:
01302373
Vues:
47
Hopefully a simple question, but I don't have much experience with writing contraints in SQL Server.

I have one table called Folders with an ID field (autonumber PK) and a Folder field (varchar unique). This contains a list of folders.

I have a second table called Queue. It has several fields, one of which being Folder (corresponds to the Folder field in the first table). How do I write a constraint to enforce that the contents of the Folder field in the Queue table exists in the Folder field in the Folders table?

Thanks!
Very fitting: http://xkcd.com/386/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform