Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add a field
Message
 
To
11/02/2005 15:46:52
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00986142
Message ID:
00986148
Views:
29
>On a normal DBF free table, can a field be be added from a PRG?
>
>For example, say I wanted to take a DBF with 10 fields and 10,000 records.
>
>Then I want to add a field eleven called CNTR of type INT.

see the alter table command :

ALTER TABLE TableName1 ADD | ALTER [COLUMN] FieldName1
FieldType [( nFieldWidth [, nPrecision])] [NULL | NOT NULL] [CHECK lExpression1 [ERROR cMessageText1]]
[AUTOINC [NEXTVALUE NextValue [STEP StepValue]]] [DEFAULT eExpression1]
[PRIMARY KEY | UNIQUE [COLLATE cCollateSequence]]
[REFERENCES TableName2 [TAG TagName1]] [NOCPTRANS] [NOVALIDATE]
B.D.H.
Previous
Reply
Map
View

Click here to load this message in the networking platform