我想使用linq to Sql运行此查询: DATEPART(MONTH,date) as dateColumn [mydatabase].[dbo].global_currency_entries] date >= '2014-01-01' AND date<='2014-12-31' DATEPART(Month,date) DATEPART(MONTH,date)
我使用的Linq t
我想提高sql查询速度,但不知道如何生成最佳索引组或索引组。如何为sql表找到最佳索引?(columnD))>=... and (date(columnD))<=...) order by columnD desc";
from log(columnD))>=... and (date(columnD))<=...) order by columnD desc";
| 3 | pqr | 32 | pra | 5 (select * from test.companies where id = '2' orderby ttm desc limit 2)(select * from test.companies where id = '3' order by ttm desc limit 2);