Subject Result: [firebird-support] SELECT COUNT(*) FROM :PARAMTABLE -
Author Tanz Anthrox
CREATE PROCEDURE SP_SERVERISTATISTIK
RETURNS (
TABLOAD VARCHAR (50),
KAYITSAYISI BIGINT)
AS
begin
for
SELECT RDB$RELATION_NAME
FROM RDB$RELATIONS
WHERE
(RDB$RELATION_NAME NOT LIKE 'RDB$%')
and
(RDB$VIEW_SOURCE IS NULL)
INTO
:TABLOAD
DO
BEGIN
execute statement 'SELECT CAST(COUNT(*) AS BIGINT) FROM ' || TABLOAD
INTO :KAYITSAYISI;
suspend;
END
end