create or replace function get_tab_count(tb varchar2) return number
as
type cursor_type is ref cursor;
get_cursor cursor_type;
tb_count number;
begin
open get_cursor for
'select count(*) into tb_count from '||tb;
close get_cursor;
commit;
return tb_count;
end;
开心每一天1111
千巷猫影