Possible Duplicate:
Create autoincrement key in Java DB using NetBeans IDE
I am trying to create a table in netbeans, using -
CREATE TABLE Persons (
P_Id int NOT NULL AUTO_INCREMENT,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
PRIMARY KEY (P_Id)
)
but am getting the following error -
Syntax error: Encountered "AUTO_INCREMENT" at line 3, column 19. Line 1, column 1