I want to generate unique id in mysql before insert. Which concept is better for this . pls tell suggesstion to me.
I want to give auto increment with string.... Like create SKU id
I want to generate unique id in mysql before insert. Which concept is better for this . pls tell suggesstion to me.
I want to give auto increment with string.... Like create SKU id
You could just have a primary key which is set on auto-increment, to get a unique id each time. This is done most of the times.
You can set the primary key as auto-increment and this will work for you...
You can get the auto increment value like that, though, making the column A_I will increase your ID every insert.