Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primary key
Message
From
18/10/2007 17:48:19
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01261997
Message ID:
01262009
Views:
16
Hi Moises,

you need a command like this:
ALTER TABLE 'MyTable' ADD PRIMARY KEY <fieldname> TAG <tagname> COLLATE 'MACHINE'
so here's an actual line of code:
ALTER TABLE 'GENERATEPK' ADD PRIMARY KEY GPK_PK TAG GPK_PK COLLATE 'MACHINE'
For candidate keys:
INDEX ON UPPER(USR_LANID) TAG USR_LANID FOR .NOT.DELETED() CANDIDATE COLLATE 'MACHINE'
>How to create a primary or candidate KEY ?
>
>VFP help is not clear about this issue
>
>Moises
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform