Friday, May 24, 2013 23:41

Archive for April, 2009

Oracle In and Exist

Monday, April 6, 2009 10:08

Oracle In vs Exist the two are processed very very differently. Select * from T1 where x in ( select y from T2 ) is typically processed as: select * from t1, ( select distinct y from t2 ) t2 where t1.x = t2.y; The subquery is evaluated, distinct'ed, indexed (or hashed or sorted) and then joined ...

This was posted under category: Oracle  |  Read Full Story  |  0 Comments
Tagged with:

Oracle CURSOR FOR Loop

Monday, April 6, 2009 8:41

Syntax: FOR record_index in cursor_name LOOP {.statements.} END LOOP; You would use a CURSOR FOR Loop when you want to fetch and process every record in a cursor. The CURSOR FOR Loop will terminate when all of the records in the cursor have been fetched. Here is an example of a function that uses a CURSOR ...

This was posted under category: Oracle  |  Read Full Story  |  0 Comments
Tagged with: