CREATE TABLE [jplist].[Item](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Title] [varchar](150) NULL,
[Image] [varchar](150) NULL,
[Description] [varchar](MAX) NULL,
[Likes] [int] NULL,
[Keyword1] [varchar](150) NULL,
[Keyword2] [varchar](150) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY];
mysql error :
#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 '[jplist].[Item](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Title] [varchar](150) NUL' at line 1
我找不到任何错误
答案 0 :(得分:0)
CREATE TABLE [jplist].[Item](
[ID] int IDENTITY(1,1) NOT NULL,
[Title] varchar(150) NULL,
[Image] varchar(150) NULL,
[Description] varchar(MAX) NULL,
[Likes] int NULL,
[Keyword1] varchar(150) NULL,
[Keyword2] varchar(150) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY];
您应避免在数据类型周围使用[]
。