Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto increment field added after
Message
 
To
05/07/2005 16:47:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01029194
Message ID:
01029212
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>I had to add an auto increment field in a table. So far so good, it went well. But, the table was already created with a bunch of records. So, I wanted to punch the IDs in it. However, VFP tells me that the field is read only. How can I achieve that once I have some records in it?

First add the field w/o autoinc, REPLACE ALL with some IDs Check the last and then ALTER TABLE to make it autoinc with the NEXT LastID+1
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform