Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble adding field to table in specific position
Message
From
01/04/2004 17:16:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00891465
Message ID:
00891614
Views:
19
>Since I have to validate the structure anyway, I tested for the name of the field and used alter table if it was different to make sure the field names match the upload structure. Then I could query the table and add the new fields needed at the same time then append from to the fix structure of the upload table for uploading.

Remember that ALTER TABLE ... ADD COLUMN will add the columns to the end. That's why I suggested creating the entire structure.
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
Reply
Map
View

Click here to load this message in the networking platform