I want to know how we can get record count using reference cursor in oracle10g.
相关问题
- Can I skip certificate verification oracle utl_htt
- how to calculate sum time with data type char in o
- keeping one connection to DB or opening closing pe
- System.Data.OracleClient not working with 64 bit O
- How can I get rid of dynamic SQL
相关文章
- node连接远程oracle报错
- oracle 11g expdp导出作业调用失败,提示丢包。
- 执行一复杂的SQL语句效率高,还是执行多少简单的语句效率高
- Oracle equivalent of PostgreSQL INSERT…RETURNING *
- Difference between FOR UPDATE OF and FOR UPDATE
- Oracle USING clause best practice
- Is there a method in PL/SQL to convert/encode text
- PHP PDO installation on windows (xampp)
After you fetched the rows you can use cursorname%rowcount to get the amount of records you fetched.
You cannot.
You can only count the rows while you fetch them from the cursor.
A cursor is like a stream, and Oracle does not know how much rows are in there until it has read them all (which happens as you fetch rows).