欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

sqlserver中的guid的40位数和36位数的获得

程序员文章站 2024-01-31 16:10:22
...

select newid()
select  cast(cast(0 as binary) as uniqueidentifier)  
select replace(newid(), '-', '')
select replace((select  cast(cast(0 as binary) as uniqueidentifier)), '-', '')

sqlserver中的guid的40位数和36位数的获得