What is wrong with this SQL,
-> );
ERROR 1075 (42000): Incorrect table definition; there can be only one auto column
SQL
CREATE TABLE TABLENAME12
(
TAB_ID INT NOT NULL AUTO_INCREMENT,
NAME_FIRST NVARCHAR(200),
TYPE NVARCHAR(200)
);
I am using mysql, how can I solve this. I am trying to create a table. and I get this error
The simular result you’ll get with
This is also usable with other db’s as mysql except the type definition int and nvarchar.
if you use varchar and integer instead you are compatible with postgresql.