I want to use the total number of records in a table in a variable of data type number, but I am not able to do this if I use the following statement :
row_num number;
row_num := select count(*) from emp;
I am trying to use this in a procedure .. what's the correct way to do it?