Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting tables
Message
De
24/08/2001 03:32:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/08/2001 18:04:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00548366
Message ID:
00548507
Vues:
7
>Can someone explain to me, how the tables are connecting (primary key with wath, indexes and others) in some database?

Boban,
In its simple form a primary key connects to any other key expression (foreign key). Primary key constitutes the '1' side and foreign key 'many' side. If you connect 2 primary keys than it'd be 1-to-1.
Keep in mind that these are 'persistent' definitions for database and you're never limited to those connections. ie: customer.cust_id (PK) connects to orders.cust_id (FK). Here parent is customer and orders is child. However at times (such as reporting) you might well reverse the relation from orders to customer (not persistent).
If you dont need persistent relations (Referential integrity control) than you might never create them. But IMHO if nothing else they visually help you to see relations between tables in a DBC.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform