![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
On Jun 12, 2:17 am, Norbert Pürringer <thalio... (AT) graffiti (DOT) net> wrote: Hello, what is the best way to create a sequence with a dynamic start value. The following statement is not valid: create sequence TEXT_SEQ start with select NVL(max(ID),0) + 1 from TEXT; Thank you, Norbert The core question is why do you need to do that? also why do you need to do it in one statement? * Ed |
#12
| |||
| |||
|
|
On Jun 12, 2:17 am, Norbert Pürringer <thalio... (AT) graffiti (DOT) net> wrote: Hello, what is the best way to create a sequence with a dynamic start value. The following statement is not valid: create sequence TEXT_SEQ start with select NVL(max(ID),0) + 1 from TEXT; Thank you, Norbert The core question is why do you need to do that? also why do you need to do it in one statement? * Ed |
#13
| |||
| |||
|
|
On Jun 12, 2:17 am, Norbert Pürringer <thalio... (AT) graffiti (DOT) net> wrote: Hello, what is the best way to create a sequence with a dynamic start value. The following statement is not valid: create sequence TEXT_SEQ start with select NVL(max(ID),0) + 1 from TEXT; Thank you, Norbert The core question is why do you need to do that? also why do you need to do it in one statement? * Ed |
#14
| |||
| |||
|
|
Hello, what is the best way to create a sequence with a dynamic start value. The following statement is not valid: create sequence TEXT_SEQ start with select NVL(max(ID),0) + 1 from TEXT; Thank you, Norbert |
|
|';' from text; spoo off |
#15
| |||
| |||
|
|
Hello, what is the best way to create a sequence with a dynamic start value. The following statement is not valid: create sequence TEXT_SEQ start with select NVL(max(ID),0) + 1 from TEXT; Thank you, Norbert |
|
|';' from text; spoo off |
#16
| |||
| |||
|
|
Hello, what is the best way to create a sequence with a dynamic start value. The following statement is not valid: create sequence TEXT_SEQ start with select NVL(max(ID),0) + 1 from TEXT; Thank you, Norbert |
|
|';' from text; spoo off |
#17
| |||
| |||
|
|
Hello, what is the best way to create a sequence with a dynamic start value. The following statement is not valid: create sequence TEXT_SEQ start with select NVL(max(ID),0) + 1 from TEXT; Thank you, Norbert |
|
|';' from text; spoo off |
![]() |
| Thread Tools | |
| Display Modes | |
| |