CREATE TABLE ec_recurring
(
[recurring id] int NOT NULL IDENTITY,
[price] decimal(10,4) NOT NULL,
[frequency] enum('day','week','semi_month','month','year') NOT NULL,
[duration] cast(10 as int) unsigned NOT NULL,
[cycle] cast(10 as int) unsigned NOT NULL,
[trial status] tinyint(4) NOT NULL,
[trial price] decimal(10,4) NOT NULL,
[trial frequency] enum('day','week','semi_month','month','year') NOT NULL,
[trial duration] cast(10 as int) unsigned NOT NULL,
[trial cycle] cast(10 as int) unsigned NOT NULL,
[status] tinyint(4) NOT NULL,
[sort order] cast(11 as int) NOT NULL,
[date created] datetime2 NOT NULL,
[date modified] datetime2 NOT NULL,
[created by] varchar(20) NOT NULL,
[modified by] varchar(20) NOT NULL,
[active] tinyint(4) NOT NULL,
PRIMARY KEY ([recurring id])
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
This was my code. Why does this error happen near day and cast?
Msg 102, Level 15, State 1, Line 3922
Incorrect syntax near 'day'