![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Now I have a situation like the sequence id is repeating. This applicaton is running since from 1999, this is the first time we get such a result. |
|
1. This is the code we used to create sequence "seq_type_code" CREATE SEQUENCE "public"."seq_type_code" INCREMENT 1 MINVALUE 10 MAXVALUE 9223372036854775807 START 10 CACHE 1; |
|
2 This is query we used to insert value, here we were using the sequence. insert into tour_type(type_code,type_name,from_tour_num,end_to ur_num) values(nextval('seq_type_code'),'type_name',tourRa ngeFrom,tourRangeTo); 3. This is the result we getting, see type code is repeating here type_code | type_name | from_tour_num | end_tour_num -----------+---------------------------+---------------+-------------- 10 | TEST TOUR | 1 | 99 10 | FRANCE TEST TOUR | 100 | 199 11 | GERMENY TEST TOUR | 200 | 299 12 | HOLLAND TEST TOUR | 300 | 399 |
![]() |
| Thread Tools | |
| Display Modes | |
| |