不良SQL的来源

不良SQL的来源
一、不合理的索引设计----
例:表record有620000行,试看在不同的索引下,下面几个 SQL的运行情况:
---- 1.在date上建有一非个群集索引
select count(*) from record where date >'19991201' and date < '19991214'and amount >2000 (25秒)

>>>阅读全文

猜你喜欢

转载自blog.csdn.net/sweetfire/article/details/84336757