By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

currval of sequence "my_seq" is not yet defined in this session

P: 61
when I use the statment: "currval('my_seq')" in my function I get the error message like:
"currval of sequence "my_seq" is not yet defined in this session"

maybe someone explain this problem and give me the solution.

best regards.
Sep 14 '10 #1

✓ answered by rski

You should first call
Expand|Select|Wrap|Line Numbers
  1. select netxval('sequence_name');
  2.  

Share this Question
Share on Google+
1 Reply


Expert 100+
P: 700
You should first call
Expand|Select|Wrap|Line Numbers
  1. select netxval('sequence_name');
  2.  
Sep 14 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.