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
What is foreign key in sql with example?
how to drop an existing index in mysql? : Sql dba
Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?
How many triggers can be applied on a table?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
What do you understand by case manipulation functions?
what are the differences between binary and varbinary? : Sql dba
Show the two pl/sql cursor exceptions.
Are stored procedures faster than dynamic sql?
How to fix oracle error ora-00942: table or view does not exist
What are string functions in sql?
Define SQL and state the differences between SQL and other conventional programming Languages?
Is left join and outer join same?
What is column?
Is and as keyword in pl sql?