表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表没有设置聚集索引,可以通过设置主键的方式解决。
本文介绍了一个关于SQL Azure中表未设置聚集索引导致的问题及其解决方案。当尝试在一个没有聚集索引的表中插入数据时,SQL Azure会报错。文中提到通过为表设置主键可以有效解决该问题。
表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表没有设置聚集索引,可以通过设置主键的方式解决。
2258
2612

被折叠的 条评论
为什么被折叠?