Is a GUID unique 100% of the time?

前端 未结 22 2559
孤独总比滥情好
孤独总比滥情好 2020-11-22 01:31

Is a GUID unique 100% of the time?

Will it stay unique over multiple threads?

22条回答
  •  礼貌的吻别
    2020-11-22 02:16

    The Answer of "Is a GUID is 100% unique?" is simply "No" .

    • If You want 100% uniqueness of GUID then do following.

      1. generate GUID
      2. check if that GUID is Exist in your table column where you are looking for uniquensess
      3. if exist then goto step 1 else step 4
      4. use this GUID as unique.

提交回复
热议问题