老刘@开发笔记

  • 技术
  • 思想
  • 实验
  • 关于

[Mysql]查询优化

2020/09 18 15:09

只查询前N个记录的数据

select id from tablename where id in (select id from ( select id from tablename order by id desc limit 10) as id );

// 即从tablename中取前10个,再查询

--转载请注明: http://blog.coolcoding.cn/?p=2469

作者 shaojingliu - 分类 未分类

上一篇: [Unity]Projector

下一篇: 3D美术实时渲染最佳实践(5):Mesh

  • 浏览次数

    • code-server安装 - 3,254 浏览
    • [Unity]shader中的几个语义:SV_VertexID, VPOS, VFACE - 2,297 浏览
    • SonarQube7.8/Centos7安装 - 1,370 浏览
    • [unity]推荐使用Shader.PropertyToID提升性能 - 1,221 浏览
    • [Unity]Unity2018.4的Prefab Variant(Prefab变种)功能 - 1,125 浏览
    • [Unity]批量编辑Prefab - 1,099 浏览
    • [Unity]GfxDriver只增长不释放的问题 - 1,087 浏览
    • [Unity]Enlighten概述 - 1,082 浏览
    • [unity]vscode调试unity - 1,040 浏览
    • [Unity]Vector3.lerp和Vector3.Slerp - 1,036 浏览

CopyRight © 2021 老刘@开发笔记. olo Theme 由 WordPress 强力驱动

沪ICP备19013006号-1