我在我的一个应用程序中存储排名,我经常这样做:
select count(*) from table where score > ?
和? =当前人的分数。我打算对此进行内存缓存,并且我在该表上使用索引,有没有好的方法对其进行索引?
最佳答案
关于mysql - 对范围 where 使用索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2264188/
标签 mysql
我在我的一个应用程序中存储排名,我经常这样做:
select count(*) from table where score > ?
和? =当前人的分数。我打算对此进行内存缓存,并且我在该表上使用索引,有没有好的方法对其进行索引?
最佳答案
关于mysql - 对范围 where 使用索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2264188/
相关文章:
java - 如何将 mili 秒格式更改为 yyyy-mm-dd hh :mm:ss to insert to mysql with datetype colunm
php - 使用 PHP session 并使用 PDO 选择 bool?
MySQL 集群参数问题和 MaxNoOfConcurrentOperations
php - MySQL 错误 : You have an error in your SQL syntax
mysql - 从另一个容器中启动容器时,docker-entrypoint-initdb.d为空