【发布时间】:2018-10-20 08:26:26
【问题描述】:
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;
这是我的代码。为什么这个错误会在接近白天和投射时发生?
消息 102,第 15 级,状态 1,第 3922 行
“day”附近的语法不正确
【问题讨论】:
-
欢迎来到stackoverflow。请花一分钟时间回答tour,尤其是如何How to Ask,以及edit您的问题。
-
错误是什么?还是我们必须猜测?
-
那么,您使用的是哪个数据库系统?您放置的唯一标签是 java 和 c# - 这些都与这里无关,因为您没有显示任何 java 代码或 c# 代码。
-
sql server 数据库
-
sql server 你是说microsoft的sql server?没有
enum这样的东西。它来自 MySql。
标签: sql sql-server enums