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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Auto increment the primary key

514521Sep 20 2006 — edited Sep 20 2006
Is there a way in oracle to set up auto increment e.g., the primary key of a table (number(4)) - start at one, increment by one - during the creation of the schema as some of the other databases do?

I am trying to get away from using "Nextval" (whatever) from within a java application. I am uploading images (blob) and don't always know how many images exist.

Thanks

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 18 2006
Added on Sep 20 2006
6 comments
986 views