If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Sequence in ASP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-27-03, 11:08
Rob1982 Rob1982 is offline
Registered User
 
Join Date: Dec 2003
Posts: 22
Sequence in ASP

Hi,

I trying to add some peoples detail's to my Oracle database, through ASP. I have set up the form, and text boxes for each indivdual fields, everything inserts fine apart from their ID, as this is a sequence in oracle. So a number can be inserted automatically, rather than allowing the user to insert there own ID.

Any ideas how to make my asp page generate the sequence for the new ID?

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-27-03, 15:45
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Have you tried using fieldname.nextval in your insert statement ? FYI - My oracle experience is null or (null + 10000000).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On