Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

oracle insert with a nextVal from dual

 
Nick Potter
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i'm trying to insert into an oracle db a new row like this:



How do I use the nextVal since the sequence is created specially to populate a column whenever a new user is inserted?
I'm trying to achieve something like MySql's autoincrement

Nevermind, i got it...
 
Jan Cumps
Bartender
Posts: 2608
14
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use nextval directly. No need to select it from dual:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic