• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

derby database in NetBeans does not have identity keyword

 
Lokendra Shekhawat
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends, i wanted to generate values in table automatically in the derby database. but the identity keyword is not working, is there any other keyword which perform the same functionality. how to generate values automatically in derby database. Please advice.
 
Jan Cumps
Bartender
Posts: 2588
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lokendra Shekhawat wrote:Hi friends, i wanted to generate values in table automatically in the derby database. but the identity keyword is not working, is there any other keyword which perform the same functionality. how to generate values automatically in derby database. Please advice.
Hi. Does (GENERATED BY DEFAULT AS IDENTITY) help?
 
Lokendra Shekhawat
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you it surely help me very much.

now i am going to use it, before i was using MS SQL server.

where the derby database file get stored, does it store with in the project folder or somewhere else.

when i deploy the war file will i have to upload database differently or it will go with war file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic