Can I accomplish following thing in DB2 stored procedure or functions?
Code:
DECLARE count INTEGER;
..
..
..
SET count = SELECT COUNT(*) from USER_TABLE;
Basically I want to assign the value of number of rows present in USER_TABLE to variable "count". Above statement of course is not working.
Please advise.
Thanks
rpkulkarni