| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Find Empty Tables
Andy wrote:
> You could try SELECT 'X' FROM DUAL WHERE EXISTS( SELECT 'X' FROM table).
I would suggest the following:
DECLARE
i number(6);
BEGIN
SELECT
/*+ FIRST_ROWS */
count(*) INTO i_
FROM table
WHERE rownum = 1;
bluh
END;
Cchecking if i_ is 0 (FALSE) or 1 (TRUE) for rows in the specified table.
The hint should guarantee a sub second response on even VLTs.
-- BillyReceived on Fri May 30 2003 - 07:01:04 CDT
![]() |
![]() |