Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> PL/SQL Problem
Hello,
I need your help.
I'd like to write a program, which countts the ata record of a table. The result of prog1 should be used in prog 2.
create or replace procedure TabSaetze (TABNAM VARCHAR2) is
anz number(6);
begin
select count(*) into anz from TabNam DBMS_OUTPUT.pUT_LINE (TabNam||tochar(anz,'999.999');end;
create or replace procedure TabName is
coursor cu is select TNAME from tab; TabNam tab.Tname %type; begin open cu; loop fech cu into TabNam; exit when cu%notfound; TABSAETZE (TABNAM); end loop;
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Aug 24 2000 - 01:35:34 CDT
![]() |
![]() |