用一个用户删除另一个用户的表的实现 高手进来指点
conn sys/change_on_install@lujiaqi as sysdba
create or replace procedure tes(tab_name in varchar) as cou int;
v_sql varchar(100);
begin
select count(*) into cou from all_tables where table_name=upper(tab_name);
if cou=1 then
v_sql:='drop table '||tab_name;
execute immediate v_sql;
end if;
end;
/
exec tes('test')
test是system表空间下的 现在我要删除它 而登入名用的是sys 如何实现?