In an SQL Transact SQL, one can write the following line:
select @cnt = Count(*) from employee
so that variable @cnt can be used to store the total number of records from the Employee table, and use it else where in your procedure;
I have tried;
cnt = Count(*) from Employee
in PL/SQL and I'm getting an error along this line, and PL/SQL does not seem to understand the COUNT(*) function whatcan I do ?
select @cnt = Count(*) from employee
so that variable @cnt can be used to store the total number of records from the Employee table, and use it else where in your procedure;
I have tried;
cnt = Count(*) from Employee
in PL/SQL and I'm getting an error along this line, and PL/SQL does not seem to understand the COUNT(*) function whatcan I do ?