There is a temp table TMP_OA_PSTN_CMP_11035 with fields:
ACTION_OBJID NUMBER,
CONTRACT_OBJID NUMBER,
STATUS varchar2(40),
UPDATE_DATE DATE
This contains 7 million data.i want to create seven different temp tables with data from TMP_OA_PSTN_CMP_11035 sorted by action_objid and each containing 1 million records. The column ACTION_OBJID is not a sequence .
I tried using rownum but that inputs random data.
For EG:
Temp1 : data containing action_objid from 5 ,8…to 1100000(as action_objid is not a sequence,this much is 1 million data).
Similarly, for other 6 temp tables.
I am using oracle 10g.
How about
Then repeat the above for each of your other temp tables, replacing
WHERE ACTION_OBJID > 0with(SELECT MAX(ACTION_OBJID) FROM name of previous temp table). So for TEMP_TABLE_2 the statement would beShare and enjoy.