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

    12 I would like to use the same sequence number across multiple select statements in SQL form to eventually use it as a PK insert in a table and tie multiple records together. So far, I can only …

  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 - I don't understand how postgresql's nextval () work, can …

    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 transactions etc. Each …

  4. 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 …

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

    For instance, if you call nextval twice in a row you might get IDs 1 and 5 rather than 1 and 2; or if you manually insert the result into a table, you might find row 3 is inserted before row 2.

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

    SELECT Auto_increment FROM information_schema.tables WHERE table_name='animals'; The problem is I would like the value to be increment every time the value is queried. In Oracle, …

  7. 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 …

  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 · 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. Specify "NEXT VALUE" for INSERT statement using identity column …

    May 22, 2016 · CREATE TABLE dbo.T1 (column_1 int IDENTITY, column_2 VARCHAR(30)); GO INSERT T1 (column_2) VALUES ('Row #2'); The INSERT statement does not specify …