Itamar Lins said on Fri, 12 Apr 2024 05:32:18 -0700 (PDT)
>Hi!
>I used it in my dbf only once, to generate automatic numbering in an
>old dbf, but I already had to stop using it, since using the auto
>increment field, I will no longer be able to modify the DBF, add any
>more fields to this same DBF if necessary, because I will not be able
>to import your data into the new structure.
>That's a shame. It would be nice if we had an "alter table" in DBF
>that accepted this field.
Sounds to me like I'm not going to use auto increment for anything.
Question for those who don't use auto-increment: Do you lock the table
before finding the highest primary key, incrementing it, and writing a
new blank record to the DBF, and then updating that record with the
desired data? I'd think this would lessen the race condition window.
Thanks,
SteveT
Steve Litt
Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21