Top "Sequence" questions

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

PHP Postgres: Get Last Insert ID

I found a couple of other questions on this topic. This one... mysql_insert_id alternative for postgresql ...and the …

php sql postgresql sequence last-insert-id
WiX Action Sequence

I was looking for list of actions and their sequence when running a WiX setup. Somehow the official website doesn't …

wix sequence custom-action
Specifying distinct sequence per table in Hibernate on subclasses

Is there a way to specify distinct sequences for each table in Hibernate, if the ID is defined on a …

java hibernate postgresql sequence
Generate a sequence of Fibonacci number in Scala

def fibSeq(n: Int): List[Int] = { var ret = scala.collection.mutable.ListBuffer[Int](1, 2) while (ret(ret.length - 1) < n) { …

scala sequence list-comprehension fibonacci
How to choose between UUIDs, autoincrement/sequence keys and sequence tables for database primary keys?

I'm looking at the pros and cons of these three primary methods of coming up with primary keys for database …

database database-design sequence uuid auto-increment
MappedSuperclass - Change SequenceGenerator in Subclass

I'm using JPA2 with Hibernate and try to introduce a common base class for my entities. So far it looks …

java jakarta-ee jpa sequence mappedsuperclass
How to use SEQUENCE in Apache Derby?

I'd like to use SEQUENCE support in Apache Derby 10.7. I've created the sequence with the following statement: CREATE SEQUENCE SAMPLE_…

java sql sequence derby
Using sequence in MySQL and Hibernate

I'm working on a project that uses Hibernate and MySQL. I intend to use sequence to generate ID for all …

mysql hibernate sequence auto-generate
rep() with each equals a vector

I have quick question regarding sequence and each: vect1 <- c(4, 5, 10, 3, 1) I want replicate with this vector as each …

r sequence
How to get Oracle next sequence value in .NET Entity Framework?

I have a web api post method that inserts a new row in my table in my Oracle database. I'm …

.net entity-framework oracle11g sequence nextval