Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

insert next number of primary key

roymakaaySep 29 2008 — edited Sep 29 2008
Hi
I have the table students that containing the columns stud_id number as primary key,stud_no as number, and stud_name as varchar2 datatype

I need a pl/sql code used with form builder that automatically insert the next number of primary key
when I want to insert a new record
e.g if the sql>select count(*) from students;
the result= 11 means there is 11 students
the code so enters 12 as new stud_id number then I will complete the record manually.
I will begin from number one
thanks

Windows OS
oracle 10g database
oracle form builder 6i builder
This post has been answered by JustinCave on Sep 29 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2008
Added on Sep 29 2008
11 comments
7,355 views