|
|
|
Re: Describe Sequence [message #314931 is a reply to message #314737] |
Fri, 18 April 2008 05:39 |
ORAGENASHOK
Messages: 240 Registered: June 2006 Location: Chennai
|
Senior Member |
|
|
According to my understanding SEQUENCE is used to generate sequence number for primary key/unique key column value.
First time reference for currval return sequence number.
First time reference for nextval return initial value and subsequent reference will return with currval in addition of increment value
please correct me if i am wrong
I can't understand the question mention below
Value? call nextval.
Metadata?
|
|
|
|
|
Re: Describe Sequence [message #314938 is a reply to message #314933] |
Fri, 18 April 2008 05:54 |
ORAGENASHOK
Messages: 240 Registered: June 2006 Location: Chennai
|
Senior Member |
|
|
I have created (cust_seq) a sequence in scott/tiger login already there is another sequence in user_sequences (emp_seq).
when i am select the nextval using below query it will return 2 row
select cust_seq.nextval from dual;
But when i am using the same query in Forms 6i it will give next sequential number.
Can you please explain why this difference.
[Updated on: Fri, 18 April 2008 06:07] Report message to a moderator
|
|
|
|
Re: Describe Sequence [message #314952 is a reply to message #314949] |
Fri, 18 April 2008 06:37 |
ORAGENASHOK
Messages: 240 Registered: June 2006 Location: Chennai
|
Senior Member |
|
|
I have mentioned in the select clause as cust_seq.nextval is there any column name like cust_seq.nextval in dual table.
and i have checked there is no other table like dual
|
|
|
|
|