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

--生成guid () 去掉‘-’并转成小写

declare @guid varchar(50)

select @guid =  NEWID()

select len(@guid)

select REPLACE(@guid,'-','')

select len( REPLACE(@guid,'-',''))

 

posted @ 2016-07-04 16:49  Pello  阅读(8273)  评论(0)    收藏  举报