<br />
select user.*, ip.address<br />
from user left join ip<br />
on user.ip between ip.ipstart and ip.ipend<br />
求教更有效率的查询方法,谢谢
------解决思路---------------------- 执行 EXPLAIN 你的查询指令
mysql 就会告诉你可能是哪里可以优化 ------解决思路----------------------
版主的意思是你explain/desc 分析sql语句
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn