Autogenerated Primary Key.. Please Help !!

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 2
Reputation: lakshma.sugunan is an unknown quantity at this point 
Solved Threads: 0
lakshma.sugunan lakshma.sugunan is offline Offline
Newbie Poster

Autogenerated Primary Key.. Please Help !!

 
0
  #1
Nov 5th, 2008
When some datas are inserted in to a DB table from a jsp page, how do i get the primary key in my table autogenerated?? finiding out the highest value for the primary key in the table? Pls help me wid the coding in JAVA or HTML.. I use SQL*PLus.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,160
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: Autogenerated Primary Key.. Please Help !!

 
0
  #2
Nov 5th, 2008
sql plus is for oracle not for sql server

how are you inserting the record?
i think you are meaning autoincrementing

here is how to do it in oracle
http://www.lifeaftercoffee.com/2006/...mns-in-oracle/
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the MS SQL Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC