当我尝试创建新查询时出现的问题,它给了我一个红色错误,并说语法错误,其中第一个括号{是,NVARCHAR和(1,1)和(50)的INT值也是GETDATE()括号和ID([ID] ASC)
//div[@class='grid-check-box']/input[@class='LinkServiceContactToEnvelopeMap' and @type='checkbox']
答案 0 :(得分:2)
CREATE TABLE [dbo].[Cart] {
不应带有花括号,而应带有括号()
。并且NOTNULL
应该是NOT NULL
CREATE TABLE [dbo].[Cart] (
[ID] INT IDENTITY (1,1) NOT NULL,
[CLientID] NVARCHAR (50) NOT NULL,
[ProductID] INT NOT NULL,
[Amount] INT NOT NULL,
[DatePurchased] DATETIME DEFAULT GETDATE(),
[IsInCart] BIT NOT NULL,
CONSTRAINT [PK_Purchase] PRIMARY KEY CLUSTERED ([ID] ASC)
)