MySQL Forums
Forum List  »  Stored Procedures

auto increment
Posted by: Aqeel Afazl
Date: October 01, 2008 04:05PM

I want to write a procedure for auto increment feature, for
automatically generating a unique key, but without using max() function like

SELECT max(id)+1 from temp;

Is this a good way?

Options: ReplyQuote


Subject
Views
Written By
Posted
auto increment
2542
October 01, 2008 04:05PM
1286
October 01, 2008 04:30PM
1363
October 01, 2008 05:05PM
1324
October 01, 2008 05:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.