Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> SQL*Plus and Feedback (xx Rows Selected) Line
Hi,
Consider the following SQL*Plus:
SQL> select row_id from CX_LOCK;
ROW_ID
ROW_ID
12 rows selected.
Is there a way to return the '12' rows selected in an SQL*Plus variable or soemthing similar without doing another count?
I'm attempting to run a select statement (a complex one) that generates a report but sometimes it takes so long to execute that it selects out of an older snapshot of the database and returns less rows than expected. I want to somehow save this number then run exactly the same select but with a count(1) instead of column definitions and compare the two numbers.
Any suggestions? Received on Sun May 22 2005 - 18:59:24 CDT
![]() |
![]() |