sqlserver 一张表 数据大概3200万。 关于索引 的问题

2025-04-08 00:53:44
推荐回答(1个)
回答1:

  1. 尝试使用 sp_updatestats  更新一下统计信息

2.试试强制使用索引:

select * from 表 (index=n)

select * from 表 (index=索引名称)

3.尽量不要用select * 把需要的字段写出来

4.top 是经过内部优化过的语句,对于这种情况也只能呵呵了。