My company took part in the Oracle 11 g Beta test and I also ran some (small) test on the new PL/SQL features. One of them is that access to sequences is allowed in PL/SQL, so no need to "SELECT tst_seq.nextval INTO n FROM dual" anymore!
DECLAREcan now be coded as
n NUMBER;
BEGIN
SELECT seq.nextval
INTO n
FROM dual;
END;
DECLAREFor "currval" the same solution is possible. So there is no need for a cursor anymore, but more important to me : the usability and readability of the PL/SQL is code is enhanced by this new feature.
n NUMBER;
BEGIN
n := seq.nextval;
END;
Comments