Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> sequences and order by
I've been coding pl/sql for 16 years or so and just ran into something today that surprised me.
I was doing a standard Insert into ... select ... from ... statement.
I had a sequence_name.nextval in the select clause and an order by clause on the select statement.
Oracle wouldn't accept the use of the NEXTVAL with an ORDER BY.
Has it always been that way?
Have I really coded hundreds of complex programs and just never run into that before?
![]() |
![]() |