[Home] [Help]
1781: from okc_report_sql_b
1782: where id between 10001 and 20000-1;
1783: elsif (p_entity = 'XSL') then
1784: select NVL(max(id),10000)+1 into l_n
1785: from okc_report_xsl_b
1786: where id between 10001 and 20000-1;
1787: elsif (p_entity = 'XST') then
1788: select NVL(max(id),10000)+1 into l_n
1789: from okc_report_xst