2013年9月11日

sql 练习(3)

摘要: 1.打印九九乘法表 1 with nums as (select rownum num from dual connect by level1 and t2.num<=(case when t1.num <100 then t1.num-15 else 100 end))6 group by tt1 having min(mm)!=0 order by tt1;View Code 上面给出的是优化后的sql,之前写的是t2.num<=sqrt(t1.num)由于使用大量函数计算导致性能很差,用时2分钟左右,改成t2.num<=100后用时20s然后继续优化,发现使用pl 阅读全文

posted @ 2013-09-11 15:06 a_badegg 阅读(182) 评论(0) 推荐(0) 编辑

导航