About 3,420,000 results
Open links in new tab
  1. sql - Sequence next value in SELECT statement - Stack Overflow

    6 If you want to select the next value from sequence object, you can use this SQL statement. SELECT NEXT VALUE FOR [dbo].[seq_Vehicles] AS NextVehicleId If you want to select …

  2. sql - create table with sequence.nextval in oracle - Stack Overflow

    May 16, 2012 · i created a sequence using the following query, create sequence qname_id_seq start with 1 increment by 1 nocache; Now when i try to create a table which uses the above …

  3. sql - How to retrieve the current value of an oracle sequence …

    May 27, 2017 · Is there an SQL instruction to retrieve the value of a sequence that does not increment it. Thanks. EDIT AND CONCLUSION As stated by Justin Cave It's not useful to try …

  4. sql - I don't understand how postgresql's nextval () work, can …

    Dec 21, 2020 · NEXTVAL is a function to get the next value from a sequence. Sequence is an object which returns ever-increasing numbers, different for each call, regardless of …

  5. PostgreSQL - next serial value in a table - Stack Overflow

    If you want to claim an ID and return it, you can use nextval(), which advances the sequence without inserting any data. Note that if this is a SERIAL column, you need to find the …

  6. Get oracle sequenve next value without change it - Stack Overflow

    Jan 14, 2014 · I have a big problem. I need to know the next value of an oracle sequence without changing it. If I use sequence.NEXTVAL , I get what I need. The problem is that the value …

  7. sql - MySQL equivalent of Oracle's SEQUENCE.NEXTVAL - Stack …

    MySQL equivalent of Oracle's SEQUENCE.NEXTVAL Asked 13 years, 9 months ago Modified 7 years, 2 months ago Viewed 118k times

  8. How to get the next sequence value in PostgreSQL?

    Aug 16, 2021 · Do nextval and get the "next sequence" value Use ALTER SEQUENCE my_list_id_seq RESTART WITH "next sequence - 1"; to set back the sequence value. The …

  9. sql - Best way to reset an Oracle sequence to the next value in an ...

    May 23, 2011 · 81 For some reason, people in the past have inserted data without using sequence.NEXTVAL. So when I go to use sequence.NEXTVAL in order to populate a table, I …

  10. Query several NEXTVAL from sequence in one statement

    Jun 22, 2016 · Basically, I need to query about a thousand NEXTVAL from a sequence. I can query them in a loop, or I can query them through a join with a reeeeeally big table. Is there …