Mega Code Archive

 
Categories / Oracle PLSQL / Data Type
 

Read data in for sql statement

SQL> SQL> SQL> select lpad(' ',2*level) || operation || ' ' || options   2    || ' ' || object_name as "Execution Plan"   3  from plan_table   4  where statement_id = '&&1'   5  connect by prior id = parent_id and statement_id = '&1'   6  start with id = 1; Enter value for 1: old   4: where statement_id = '&&1' new   4: where statement_id = '' old   5: connect by prior id = parent_id and statement_id = '&1' new   5: connect by prior id = parent_id and statement_id = '' no rows selected SQL>