sqlserver 生成guid以及一些字串操作
时间:2021-07-01 10:21:17
帮助过:4人阅读
生成guid () 去掉‘-’并转成小写
declare @guid varchar(
50)
select @guid = NEWID()
select len(
@guid)
select REPLACE(
@guid,
‘-‘,
‘‘)
select len(
REPLACE(
@guid,
‘-‘,
‘‘))

sqlserver 生成guid以及一些字串操作
标签: