create table salary(
salaryId int identity(1,1),
employeeId char(100),
employeeName char(100),
year char(100),
month char(100),
basicWage float,
overtimeWage float,
trafficWage float,
totalWage float,
kaoqinReduce float,
secureReduce float,
taxReduce float,
totalReduce float,
realWage float,
editTime char(100),
memo char(100)
)
然後給出的錯誤提示:(我實在 Navicat上運行的)
[Err] 1064 - 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),
employeeId char(100),
employeeName char(100),
year char(100' at line 2
year char(100' at line 2
親 mysql 沒有identity,,,,,,那是sqlserver的,mysql的是:AUTO_INCREMENT