How to count the no of records of a table without using
COUNT function?
Answer Posted / ajit
declare
cursor c1
is
select * from emp;
i c1%rowtype;
begin
open c1;
loop
fetch c1 into i ;
exit when c1%notfound;
end loop;
dbms_output.put_line(c1%rowcount);
close c1;
end;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
explain the delete statements in sql
How can we implement rollback or commit statement in a trigger?
Can a key be both primary and foreign?
What does := mean in pl sql?
What are synonyms in sql?
What is a procedure in pl sql?
How do I run sql profiler?
Write a query to find the names of users that begin with "um" in sql?
What is materialized view in sql?
What is a unique constraint?
what is a composite key ? : Sql dba
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
What is a sql profiler?
how is myisam table stored? : Sql dba
What pl/sql package consists of?