FWQ
大数据量下,如何高效查询小于等于某个值的月份?
设计基础:数据量大时的查询优化 本文探讨了两种查询方法,用于从表 newtable 中查询小于等于给定值的月份。 方法 1: select max(month) from newtabel where month<=9 登录后复制 方法 2: select month from newtabel where month<=9 order by month desc limit 1 登录后复制…