+ 1
Shortest code for generating serial ID.
Assume that you have table (Emp) which consists of (id, name). What is the best code to generate (ID) starting from (1) to insert it for a new record?
3 Respostas
+ 6
You can achieve such effect by setting auto-increment option for "id" (MySQL) or Identity option (MsSQL). With this option enabled system will automatically assign new id every time a new record is created.
I hope I understand your question correctly here.
Hth, cmiiw
+ 5
You're very welcome my friend, glad to help ; )
+ 1
Thanks a lot dear.. great job