Azure 无法识别聚集索引
Azure is not recognizing clustered index
我在 Microsoft Azure 上创建了 SQL 服务器 table。我可以创建新项目,但是当我尝试删除项目 delete from Users where ID = 1
时出现错误:
Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
Table 通过以下语法创建:
create table Users
(
ID int primary key clustered not null identity,
FirstName varchar(50) not null,
LastName varchar(50) not null,
)
用户 ID 在其他 table 中用作外键。
Users' ID is used as foreign key in other tables.
这些表也需要聚簇索引。
我在 Microsoft Azure 上创建了 SQL 服务器 table。我可以创建新项目,但是当我尝试删除项目 delete from Users where ID = 1
时出现错误:
Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
Table 通过以下语法创建:
create table Users
(
ID int primary key clustered not null identity,
FirstName varchar(50) not null,
LastName varchar(50) not null,
)
用户 ID 在其他 table 中用作外键。
Users' ID is used as foreign key in other tables.
这些表也需要聚簇索引。