86:
87: d_position := 20;
88:
89: FORALL i IN 1..p_draft_id_tbl.COUNT
90: INSERT INTO po_session_gt
91: ( key,
92: num1
93: )
94: SELECT l_key,
105: d_position := 30;
106:
107: -- All the num1 returned from this DELETE statement are indexes for
108: -- records that contain draft changes
109: DELETE FROM po_session_gt
110: WHERE key = l_key
111: RETURNING num1
112: BULK COLLECT INTO l_dft_exists_index_tbl;
113: