coolicer
V2EX  ›  问与答

mysql 学得不好,问些基础问题。

  •  
  •   coolicer · Jun 24, 2014 · 2533 views
    This topic created in 4365 days ago, the information mentioned may be changed or developed.
    刚想到一个,大家想问的可以跟上。

    1. 如果一个表数据很大,加limit去查也是没用?它还会检索全表吗?
    1 replies    2014-06-24 21:46:31 +08:00
    zhuf
        1
    zhuf  
       Jun 24, 2014
    where id >? and id < ?这样不是更好,id是主键。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3022 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 08:42 · PVG 16:42 · LAX 01:42 · JFK 04:42
    ♥ Do have faith in what you're doing.