查询某个用户下各个表的数据量

CREATE OR REPLACE FUNCTION sql_excute(v_sql IN VARCHAR2)
  RETURN VARCHAR2 IS
  v_result VARCHAR2(1000);
BEGIN
  IF v_sql IS NULL THEN
    RETURN '';
  ELSE
     begin
    execute immediate v_sql into v_result;
    exception
      when others then
      v_result :='0';
      end;

  END IF;

  RETURN(v_result);

END sql_excute
   select  TABLE_NAME , sql_excute('select count(*) from ' || t.TABLE_NAME) as count
 from dba_tables t where t.OWNER='CREDITFW' 

上一篇:selenium + robotframework下拉框常用操作_更新版


下一篇:openCV从入门到放弃