sql server 2008 - Generate unique 9 digits values -


I have a table as shown below:

  group ---- --- -------------------- ID Number Name Age ----------------------- --- 424000000 Damine 22 2 324000000 Arshley 18 3 276000000 Tita 20 4 424000000 Helen 21 5 424000000 Mary 19 6 324000000 Cathay 20 7 324000000 Mark 188 276000000 Phil 22 I   

The call is unique Therefore, I need to create 9-digit numerical random values ​​for duplicates.

Please help, thank you

You set the num column as an identity field Set the number field to 100000000 or just one identification like a seed and print its value with the overloaded toasting method

Update: Through this management studio (adding an identity column) Skip and the table will be re-prepared on a large table is not recommended

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -