Top "Sequence" questions

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

How can I get the concatenation of two lists in Python without modifying either one?

In Python, the only way I can find to concatenate two lists is list.extend, which modifies the first list. …

python concatenation sequence list-manipulation
How do I reset a sequence in Oracle?

In PostgreSQL, I can do something like this: ALTER SEQUENCE serial RESTART WITH 0; Is there an Oracle equivalent?

sql database oracle sequence
How to retrieve the current value of an oracle sequence without increment it?

Is there an SQL instruction to retrieve the value of a sequence that does not increment it. Thanks. EDIT AND …

sql oracle sequence
Change the name of a key in dictionary

I want to change the key of an entry in a Python dictionary. Is there a straightforward way to do …

python dictionary sequence
How to reset sequence in postgres and fill id column with new data?

I have a table with over million rows. I need to reset sequence and reassign id column with new values (1, 2, 3, 4... …

postgresql sequence
How to create an Oracle sequence starting with max value from a table?

Trying to create a sequence in Oracle that starts with the max value from a specific table. Why does this …

sql oracle sequence
Generate a sequence of numbers in Python

How can I generate the sequence of numbers "1,2,5,6,9,10......" and so until 100 in Python? I even need the comma (',') …

python sequence
can't multiply sequence by non-int of type 'float'

level: beginner why do i get error "can't multiply sequence by non-int of type 'float'"? def nestEgVariable(salary, save, growthRates): …

python floating-point sequence
Oracle SQL: Use sequence in insert with Select Statement

Basically I want to run the following query: INSERT INTO historical_car_stats (historical_car_stats_id, year, month, make, …

sql oracle plsql insert sequence
How do I create a sequence in MySQL?

I'm trying to create a sequence in MySQL (I'm very new to SQL as a whole). I'm using the following …

mysql sql sequence