我正在尝试执行此查询,但是当它与 SQL Server 2005 完美匹配并且表已经存在并且试图在不同的服务器上创建新表时,会出现语法错误,
USE [myDataBase]
GO
CREATE TABLE [dbo].[myTable]
(
[ID] [int] IDENTITY(1,1) NOT NULL,
[Tittle] [varchar](1024) NOT NULL,
[Description] [varchar](8000) NOT NULL,
[Table2ID] [int] NOT NULL,
[Table3ID] [int] NOT NULL,
CONSTRAINT [PK_myTable] PRIMARY KEY CLUSTERED
(
[ID] ASC
)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
错误
消息 170,级别 15,状态 1,第 16 行第 16 行:'(' 附近的语法不正确。
在上面的例子中,第 16 行是空的,我很困惑。