这样的SQL语句, 还能有哪些写法,哪最写法运行时速度最快? SQL语句的优化有很多可能影响的方面 建议先看看执行计划http://community.csdn.net/Expert/topic/5209/5209876.xml?temp=.38081 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 where table1.a = table2.a and table1.b = table2.b and table1.d = table2.d and table1.f > 10;改成where table1.f > 10 and table1.a = table2.a and table1.b = table2.b and table1.d = table2.d ;条件固定的放在where字句的最后,同时,多表连接,最好给表起个别名当然,sql的效率,最主要的还是要看执行计划 hibernate query.list()没有值 各位大侠帮我看看这段代码,stmt->executeUpdate()不执行 Oracle9i使用透明网关连接sqlserver2005,出现错误,在线急等!! role_sys_privs与dba_sys_privs区别 在linux下安装oracle10g,内核参数的配置。。。 oracle 出现这样的错误 GROUP BY 在SQL Worksheek中运行出错 关于SQL脚本升级的一个问题(急) 用jdbc连接oracl的问题(都一个星期了!!!!!!!) oracle 8i,9i超级用户的密码分别是什么? 新手提问 新手问题
table1.d = table2.d and table1.f > 10;改成
where table1.f > 10 and table1.a = table2.a and table1.b = table2.b and
table1.d = table2.d ;条件固定的放在where字句的最后,同时,多表连接,最好给表起个别名
当然,sql的效率,最主要的还是要看执行计划