Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add a date type filed
Message
From
03/09/2006 10:49:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/09/2006 09:31:00
Michale Chen
Shijiazhuang ZhiYuan Crop.
Shijiazhuang, China
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01150589
Message ID:
01150593
Views:
19
>I see. "alter table tablename add column columnname d".

Yes, that is the command.

However, what I do to update the database on the production server (this would be similar on a client site) is to have a copy of the database with zero records on all tables; make any changes in this empty database; and then do an APPEND FROM for all tables. This will take care of most changes to the database structure, without having to write a program every time.

Note that if you have referential integrity, you have to copy the parent table before the child table.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform