我在Microsoft Azure上创建了一个SQL Server表。我可以创建新的项目,但是当我尝试删除项目delete from Users where ID = 1
我得到错误:Azure无法识别聚簇索引
Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
表是根据下面的语法创建的:
create table Users
(
ID int primary key clustered not null identity,
FirstName varchar(50) not null,
LastName varchar(50) not null,
)
用户的ID被用作其他表的外键。
请发布实际的表架构定义('非空'位于错误的地方...)Azure中的所有表都需要聚簇索引 –