Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Tables vs SQL Server
Message
From
24/01/2000 14:42:50
 
 
To
23/01/2000 22:57:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00321142
Message ID:
00321782
Views:
30
>My PK field is always name TableId, so in a Customer table, it would be CustomerID. That fieldname flows through to all other tables that use it.

Oh, of course! I was forgetting the most important reason for repeating the table name in the key field name. Otherwise foreign keys must have a different name from the primary key field they refer to.

So you say "CustomerId" and I say "iCUSTOMER"! [BG] (I always capitalize references to table names.]


>Also, I never, ever use underscore. Too difficult to type. I can use upper/lower case to differentiate enough.

I agree. See point 14 in document "VFP Development Do's and Don'ts".

Peter
Peter Robinson ** Rodes Design ** Virginia
Previous
Reply
Map
View

Click here to load this message in the networking platform