auto commit
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
这里是在不同数据库中生成雪花ID的SQL脚本。
|
||||
|
||||
#### SQL Server
|
||||
## SQL Server
|
||||
|
||||
设计说明:
|
||||
|
||||
@@ -31,7 +31,7 @@ set @WorkerIdBigLength = 4 -- 规则约束:@WorkerIdBigLength+@SeqBigLength<23
|
||||
set @SeqBigLength = 8 -- 建议不小于6,在当前SQL版本中,@SeqBigLength 决定随机数的最大值(未采用自增数,这需要数据表记录Seq值)
|
||||
```
|
||||
|
||||
#### 其它思路
|
||||
## 其它思路
|
||||
|
||||
除了用SQL Server方法生成雪花ID之外,还可让SQL Server调用外部dll生成ID。参考:https://www.cnblogs.com/woxpp/p/3990277.html
|
||||
|
||||
|
||||
Reference in New Issue
Block a user