我有一個sql-server查詢,我想在mysql上運行它(或創建一個等效查詢)。但目前我收到語法錯誤。任何人都可以幫助我創建一個相當於下面提到的sql-server查詢的mysql嗎?Mysql等價於MS-Sql服務器IDENTITY字段
create table Emp(EmpName varchar(20) not null,keyword varchar(20) not null,
DOB datetime not null,Comments text(65535),EmpId int primary key IDENTITY(1,1));
以下是錯誤
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'IDENTITY(1,1))' at line 1