The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT okc_kexp_report_s1.NEXTVAL
INTO l_report_seq
FROM dual;
l_qry := 'SELECT row_id '||
'FROM okc_k_headers_v CHRV '||
'WHERE '||
p_ksearch_where_clause; --> Input Parameter
INSERT
INTO OKC_KEXP_REPORT
(
CONTRACT_HEADER_ROWID,
REPORT_ID,
REPORT_DATE )
VALUES
(
okc_kexp_pls_tbl(i), -- Row Id
l_report_seq, -- Report Id
SYSDATE -- Report Date
);
-- Delete plsql collection table
-- -------------------------------------
okc_kexp_pls_tbl.DELETE;
PROCEDURE delete_ksrch_rows(
p_from_date IN DATE ,
p_to_date IN DATE ,
x_return_status OUT NOCOPY VARCHAR2 ) IS
BEGIN
-- ------------------------------------------------------
-- To delete rows from the temporary table for a given
-- period of days. This procedure will be registered as
-- the concurrent program, with two input parameters.
-- ------------------------------------------------------
IF p_from_date <= p_to_date
THEN
DELETE FROM okc_kexp_report
WHERE report_date
BETWEEN p_from_date AND p_to_date;
END delete_ksrch_rows;
SELECT name
FROM OKX_SALESREPS_V
WHERE id1 = p_id1
AND id2 = p_id2;