sql azure insert时索引错误

来源:互联网 发布:js设置div背景颜色 编辑:程序博客网 时间:2024/06/01 08:19

表a就两个字段都是int型

在本地sql 2008 r2中insert是没有问题的。但到sql azure中就会出现

Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.


原因:a表没有设置聚集索引,可以通过设置主键的方式解决。


原创粉丝点击