rana_m
asked on
record count
I am using execute_query to display records in block and i want to display the total of record displayed is there any bulid in command for my question.
Select count(*) from your_table_name;
You can have a display item in your form. After doing execute_query, then you have to code select count(1) into :item_name from table;
Try to use this command.....
INSCNT := sql%rowcount;
which will assign the number of records affected by ur operation to a variable. You can use this variable to display the number of records affected.The sql%rowcount is a predefined implicit cursor variable frm where you can find the number of records affected by ur operation......
regds
INSCNT := sql%rowcount;
which will assign the number of records affected by ur operation to a variable. You can use this variable to display the number of records affected.The sql%rowcount is a predefined implicit cursor variable frm where you can find the number of records affected by ur operation......
regds
ASKER
I have tried all the three answers. Thanks for sending but all didn't work.
I don't want to display the number of records in the table.
I want to count the total records display by execute_query for a certian condition. Not all the records displayed.
I tired the thired answer but still it didn't work.
I don't want to display the number of records in the table.
I want to count the total records display by execute_query for a certian condition. Not all the records displayed.
I tired the thired answer but still it didn't work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.