打印

db2中using用法

db2中using用法

各位大哥大姐,谁知道db2中有没有类似oracle中using的用法。

oracle中 select item11,item22 from table1 full join table2 using(item11) 的写法
在db2中应该怎么写?

我写成 select table1.item11,  table2.item22  from table1 full join table2  on table1.item11=table2.item11
但性能、效率非常低下。、

应该怎么写

TOP

性能效率低下得分析低下的原因
[COLOR=indigo] 我确定我就是那一只披着羊皮的狼 而你是我的猎物是我嘴里的羔羊 我抛却同伴独自流浪 就是不愿别人把你分享[/COLOR] [img]http://blog.itpub.net/get/188/91_204620.gif[/img] [URL=http://spaces.msn.com/members/totaldb2][COLOR=blue][SIZE=3][B]MY BLOG: [U]TOTAL DB[/U][/B][/SIZE][/COLOR][/URL] [URL=http://www-900.ibm.com/cn/support/forum/app/tscforum/list?areaid=06&categoryid=13][COLOR=blue][SIZE=3][B]IBM DB2论坛:[U]http://www-900.ibm.com........[/U][/B][/SIZE][/COLOR][/URL] [URL=http://publib.boulder.ibm.com/infocenter/db2help/index.jsp][COLOR=darkblue][SIZE=3][B][U]DB2信息中心[/U][/B][/SIZE][/COLOR][/URL] [URL=http://tahiti.oracle.com/][COLOR=red][SIZE=3][B][U]ORACLE文档[/U][/B][/SIZE][/COLOR][/URL]

TOP

看看执行计划
茅屋之下,或有贤良; 蒿草之中,或有兰香. Blog:http://bpmfhu.itpub.net/

TOP

楼上两位分咋这么高?
用db2expln分析一下sql的执行计划

TOP

分高是 老啊。 都是老年人了
[COLOR=indigo] 我确定我就是那一只披着羊皮的狼 而你是我的猎物是我嘴里的羔羊 我抛却同伴独自流浪 就是不愿别人把你分享[/COLOR] [img]http://blog.itpub.net/get/188/91_204620.gif[/img] [URL=http://spaces.msn.com/members/totaldb2][COLOR=blue][SIZE=3][B]MY BLOG: [U]TOTAL DB[/U][/B][/SIZE][/COLOR][/URL] [URL=http://www-900.ibm.com/cn/support/forum/app/tscforum/list?areaid=06&categoryid=13][COLOR=blue][SIZE=3][B]IBM DB2论坛:[U]http://www-900.ibm.com........[/U][/B][/SIZE][/COLOR][/URL] [URL=http://publib.boulder.ibm.com/infocenter/db2help/index.jsp][COLOR=darkblue][SIZE=3][B][U]DB2信息中心[/U][/B][/SIZE][/COLOR][/URL] [URL=http://tahiti.oracle.com/][COLOR=red][SIZE=3][B][U]ORACLE文档[/U][/B][/SIZE][/COLOR][/URL]

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-12-3 09:04 京ICP证060528 号

Designed By 17DST