我正在尝试在我的工作台中打开一个脚本,但关键字 GENERATED 以红色下划线显示,并显示一条错误消息:` 语法错误,意外 IDENT_QUOTED。这只是一个简单的数据库脚本。
DROP TABLE Addresses;
CREATE TABLE Addresses
(
AddressID INT NOT NULL GENERATED ALWAYS AS IDENTITY,
FirstName VARCHAR (15) NOT NULL,
LastName VARCHAR (30) NOT NULL,
Email VARCHAR (30) NOT NULL,
PhoneNumber VARCHAR (15) NOT NULL
);
INSERT INTO Addresses (FirstName,LastName,Email,PhoneNumber)
VALUES ('Mike','Green','demo1@deitel.com','555-5555'),
('Mary','Brown','demo2@deitel.com','555-1234');