• Post Reply Bookmark Topic Watch Topic
  • New Topic

oracle insert with a nextVal from dual  RSS feed

 
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: 2632
17
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:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!