79727492

Date: 2025-08-06 15:17:52
Score: 1
Natty:
Report link
with function row_count(tab_name in varchar2) return number as
    rc number;
begin
    execute immediate 'select count(*) from ' || tab_name into rc;
    return rc;
end;
select table_name, row_count(table_name) as row_count from all_tables
    where owner = 'owner';
/
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Uwe Fest