I am executing an SQL command that I have executed many other times in other environments but cannot a reason for this syntax error.
This is the code:
CREATE TABLE Customer
(
customer_id INT IDENTITY (1,1) PRIMARY KEY,
DOB DATETIME,
Gender ENUM('M', 'F'),
city_code (6) NOT NULL
)
I get an error:
Msg 102, Level 15, State 1, Line 7
Incorrect syntax near 'M'
If anybody has a pointer of something I am blatantly missing, please show the way. I'm using Microsoft MySql 2014 Express Edition
city_code (6)it need to declare type.ENUMis a non SQL Server (MSSQL) datatype and the error is related to SQL Server (MSSQL) and not MySQL..