查询在SQL Server 2005中有效,但SQL Server 2000的语法错误
技术问答
336 人阅读
|
0 人回复
|
2023-09-12
|
我正在尝试执行这个查询,但当它与之相匹配时SQL Server 2005完美配合,手表已经存在,并试图在其他服务器上创建新手表,但语法错误,
" u/ }$ `1 d' `8 r: s+ c4 k3 BUSE [myDataBase]GOCREATE 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错误6 A; ]/ x5 Z) m9 m, d% A
消息170,级别15,状态1,第16行第16行:’(’附近的语法不正确。
$ ]1 S. w9 O& H/ _在上面的例子中,第16行为是空的,非常混乱。! A& _( A9 g; [3 f3 S6 ^
3 ~+ J/ |3 h, ~' A! H 解决方案: |
|
|
|
|
|