1
0
mirror of synced 2026-04-19 23:08:39 +08:00

auto commit

This commit is contained in:
yitter
2021-04-18 01:26:45 +08:00
parent 47bcfe4001
commit 30379c1e1c

View File

@@ -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