c1a1o1
版主
  
一品带刀护卫
UID 68669
精华
0
积分 1225
帖子 2180
金钱 1225 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2006-2-17
状态 离线
|
[推荐阅读] 大家一般都用什么方式导入mysql文本数据
CODE:[Copy to clipboard]<?php //使用LEFT JOIN SELECT `sgflash`.`f_name`, `sgflash_comment`.`contents`, `sgflash_comment`.`nickname`, `sgflash_comment`.`date` FROM `sgflash_comment` LEFT JOIN `sgflash` ON (`sgflash_comment`.`fid`=`sgflash`.`fid`) ORDER BY `sgflash_comment`.`date` DESC LIMIT 0, 10000
//不使用LEFT JOIN SELECT `sgflash`.`f_name`, `sgflash_comment`.`contents`, `sgflash_comment`.`nickname`, `sgflash_comment`.`date` FROM `sgflash_comment`, `sgflash` WHERE `sgflash_comment`.`fid`=`sgflash`.`fid` ORDER BY `sgflash_comment`.`date` DESC LIMIT 0, 10000 ?> 测试对比 显示行 0 - 29 (10000 总计, 查询花费 0.6760 秒) 第一次执行用LEFT JOIN 显示行 0 - 29 (10000 总计, 查询花费 1.5532 秒) 第二次执行不用LEFT JOIN 显示行 0 - 29 (10000 总计, 查询花费 0.6655 秒) 第三次执行使用LEFT JOIN 显示行 0 - 29 (10000 总计, 查询花费 1.3730 秒) 第四次执行不合使用LEFT JOIN
|  成人电影
php教材价格比较网美女图片 |
|