What version of Pervasive are you using? If you're using Pervasive.SQL 7.0 or Btrieve 6.15, the autonumber data type is called "autoinc", if you're using Pervasive.SQL 2000 or V8, it's called "identity". So for 2000 or V8, the following would create a table with an autonumber field:
create table test
(f1 identity not null,
f1 char(10))
For Pervasive.SQL 7.0 and Btrieve 6.15, it would be:
Create table test (
f1 autoinc,
f1 char(10))
Then for the insert, you would need to use "0" (that's zero not the letter O). info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.