Hi All,
Which of the 2 methods is better:
select count(*) into v_1 from table_name;
or
cursor c1 is select count(*) from table_name;
open c1; fetch c1 into v_1; close c1;
My point is, the SELECT COUNT(*) INTO will never raise a NO_DATA_FOUND or TOO_MANY_ROWS.
So, isn't the SELECT COUNT(*) INTO better for count(*) queries?