Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create MS Access Table with auto increment primary key

843854Mar 16 2002 — edited Jun 1 2007
I tried the following SQL statement
"CREATE TABLE Employees (empId INTEGER NOT NULL Primary Key auto_increment, firstName VARCHAR(30) NOT NULL, lastName VARCHAR(40) NOT NULL)";

But failed. Here lists the SQL Exception:
Message : [Microsoft][ODBC Microsoft Access Driver] Syntax error in CREATE TABLE statement.

Has anyone using JDBC to achieve this?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 29 2007
Added on Mar 16 2002
6 comments
2,199 views