日期:2014-05-17 浏览次数:20994 次
select t.sql_text into v_sql from v$sqlarea t, v$session s where t.sql_id = s.sql_id and upper(t.sql_text) like 'DELETE%'||v_table_name||'%' and s.audid = userenv('SESSIONID');
delelte from tablename where id=v_id;