摘要: select * from ( select tb.the_obj the_obj1, min(s.show_order) the_obj_order from REP_SC tb left join template_showorder s on tb.subj_code = s.ref_code and s.fact_table_code = 'REP_SC' and s.type ='index' and tb.T... 阅读全文
posted @ 2013-04-08 11:38 rattersnake 阅读(224) 评论(0) 推荐(0) 编辑
摘要: nested loops semi是nested loop连接的变种,又叫半连接。原理与nl相同,通常用于in,exist操作,这种操作join时候,通常查找到一条纪录就可以了,所以用semi表示。与semi相似的有一种叫anti,反连接,一般用于not in,not exists,也有nest loop anti和hash anti两种。http://blog.chinaunix.net/uid-26190993-id-3259517.htmlNESTED LOOPS & HASH JOIN & SORT MERGE JOIN表连接方式及使用场合NESTED LOOP对于被连 阅读全文
posted @ 2013-04-08 11:32 rattersnake 阅读(980) 评论(0) 推荐(0) 编辑