更新时间:2023-11-11 23:44:40
虽然不能保证每个生成的GUID都是唯一的,但总计 唯一键的数量(2128或3.4×1038)太大,以至于 两次产生相同数字的可能性很小.
While each generated GUID is not guaranteed to be unique, the total number of unique keys (2128 or 3.4×1038) is so large that the probability of the same number being generated twice is very small.
您可以在这里.
一种可能的解决方案,以避免重复的指导(如果您仍然想要的话)是使用
A possible solution to avoid duplicate guids (if you still want one) is to use the UNIQUE constraint.