Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I find out primary key and default value
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01267943
Message ID:
01267956
Views:
13
>>>How do I find out the name of the primary key in a table and its default value? Thanks
>>>
>>>
>>>
>>>Nick patel
>>
>>Check PRIMARY() function in HELP.
>>What do you mean with DEFAULT value?
>>Index gas no such value :-) maybe you want the default value of the fields which is used as a KEY for that index?
>
>
>thanks for answering back Borislav, The default value I want see is under field validation. When we modify the structure, you can see there is a spot called "Default Validation" right under the "Message:" in the field validation section. Thanks
>
>Nick

That has nothing to do with index. That is field property :-)
OPEN DATABASE YourDataBase
USE YourTable
WAIT WINDOW DBGETPROP([FieldNameHere],[FIELD],[DefaultValue])
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform