c# - Auto generation of ID -
I need to generate an ID with the following attributes:
-  
ID must have two part 'type' and 'auto incremental' number.
 -  
'type' is an integer and the value can be 1, 2 or 3
 -  
'Auto-incremented' starts with the number 10001 and every time the id's ID is generated.
 -  
then the generated ID = 210001
 > There can be a Hundrade for the creation of User ID. Now my question is, can this be done without any stored procedures, which has no objection to the ID ID.   
I am using ASP.NET (C #), Oracle, NHBinnet
As soon as you use Oracle, you can use it for it.
 Every time you call,  your_sequence.NEXTVAL  returns a unique number. 
Comments
Post a Comment