博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

SQL优化总结

Posted on 2012-02-24 13:19  奥客  阅读(192)  评论(0编辑  收藏  举报

--加字段限定和不加字段限定结果不一样

select *
from oe_order_lines_ALL ol
, oe_order_headers_ALL oh  
, hz_cust_accounts ca
where  ol.header_id=oh.header_id(+)  
and  oh.sold_to_org_id = ca.cust_account_id(+)    
and ca.account_number =2925