begin
for i in (select 'grant select on ' || table_name || ' to imes' as stm
from user_tables
where table_name not like '%$%'
) loop
execute immediate i.stm;
end loop;
end;
這樣 imes 可以訪問 所有wipdba下的表了
begin
for i in (select 'grant select on ' || table_name || ' to imes' as stm
from user_tables
where table_name not like '%$%'
) loop
execute immediate i.stm;
end loop;
end;
這樣 imes 可以訪問 所有wipdba下的表了
條款24 ----》條款24:若所有參數皆需類型轉換,請爲此採用non-member函數 **
12315 https://www.12315.cn/cuser/ 互聯網信息服務投訴平臺 https://ts.isc.org.cn/#/login