Top "Sequence" questions

A sequence is an ordered list of objects (or events).

Is there something like "if not exist create sequence ..." in Oracle SQL?

For my application that uses an Oracle 8 DB, I am providing an SQL script to setup stuff like triggers, sequences …

sql oracle sequence
Arrays - Find missing numbers in a Sequence

I'm trying to find an easy way to loop (iterate) over an array to find all the missing numbers in …

javascript arrays loops sequence
Creating a table in h2 database using predefined sequence for primary key

I am trying to create a table in an H2 database. How do I specify that the primary key should …

sequence h2 ddl
Mapping PostgreSQL serial type with Hibernate annotations

I am using Hibernate 3.3 and PostgreSQL 8.x and would like to use Hibernate annotations to map an auto-incremented column which …

hibernate postgresql sequence auto-increment
Sequence as default value for a column

I have already created a sequence: create sequence mainseq as bigint start with 1 increment by 1 How do I use this …

sql-server tsql sql-server-2012 sequence
Python: check if an object is a sequence

In python is there an easy way to tell if something is not a sequence? I tried to just do: …

python if-statement sequence sequences
Create a Sequence with START WITH from Query

How can I create a Sequence where my START WITH value comes from a query? I'm trying this way: CREATE …

oracle plsql sequence oracle9i ora-01722
Difference between list, sequence and slice in Python?

What are the differences between these built-in Python data types: list, sequence and slice? As I see it, all three …

python list definition sequence slice
Repeating a repeated sequence

We want to get an array that looks like this: 1,1,1,2,2,2,3,3,3,4,4,4,1,1,1,2,2,2,3,3,3,4,4,4,1,1,1,2,2,2,3,3,3,4,4,4 What is the easiest way to do it?

r sequence replicate
R - Generate a sequence of numbers

I am trying to create sequences of number of 6 cases, but with 144 cases intervals. Like this one for example c(1:6, 144:149, 288:293) 1 2 3 4 5 6 144 145 146 147 148 149 288 289 290 291 292 293 …

r numbers sequence