Oracle 统计表记录数

select
to_number(
extractvalue(
xmltype(
dbms_xmlgen.getxml('select count(*) c from shipment')
)
,'/ROWSET/ROW/C')) count
from dual;

原文地址:https://www.cnblogs.com/kkwoo/p/5593983.html