Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to VFP tables
Message
From
29/02/2008 11:49:14
Dave Nantais
Light speed database solutions
Ontario, Canada
 
 
To
29/02/2008 09:29:38
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
01297514
Message ID:
01297770
Views:
22
>>i like using a primary key because it makes the update command straightforward.
>>you can define which records you wish to update in terms of the primary key.

>Right. I guess I wanted to point out though that it wasn't *needed* as you said, >depending on how you're updating. >If you use the command builder, then yes you need a PK, but not necessarily otherwise.

To clarify, a field does not have to be designated within the foxpro table builder as a "primary key". As long as the field uniquely identifies each record it can act as a primary key and allow one to narrow their UPDATEs and DELETEs to a single record via the WHERE clause.

Dave.
Previous
Reply
Map
View

Click here to load this message in the networking platform