Link to home
Start Free TrialLog in
Avatar of rana_m
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.
Avatar of Muhammad Ahmad Imran
Muhammad Ahmad Imran
Flag of United Kingdom of Great Britain and Northern Ireland image

Select count(*) from your_table_name;
Avatar of sapnam
sapnam

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


Avatar of rana_m

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.
ASKER CERTIFIED SOLUTION
Avatar of Ora_Techie
Ora_Techie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial