我需要用 blaze 写这样的东西:
SELECT k2.field1
, COUNT(1)
FROM dbo.kp AS k1 WITH(INDEX(INDEX_kp_index1))
INNER JOIN dbo.kp AS k2 WITH(INDEX(INDEX_kp_index1)) ON k1.field2 = k2.field2
WHERE k1.field1 = '70675'
GROUP BY k2.field1
我需要指定索引,否则查询会计算很长时间。有没有办法,怎么办?该表有多个索引。