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!

Stored procedure to update particular key column with increment of +1

User_UMJZ5Mar 22 2013 — edited Mar 25 2013
Hi,

This is my table

EMPID,NAME
1 SSS
2 AAA

I NEED STORED PROCEDURE TO UPDATE EMPID WITH INCREMENT OF +1.BASED ON
MAX(EMPID).fOr example if i execute stored procedure once it will update empid 2 as 3,
if i run same procedure again it will take increment +1 then emp id should be 4 like that i want output.

Any one please help me on this scenario...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2013
Added on Mar 22 2013
18 comments
4,341 views