生成随机字符串

 

drop table #testTB
create table #testTB
(
    testid nvarchar(50)
)
go
 DECLARE @myid uniqueidentifier
SET @myid = NEWID()

 
    insert into #testTB(testid) values(CAST( @myid as nvarchar(50)))
    go 100
 select * from #testTB
 

 --------------------------------------------------
93F731C3-46CA-4D12-89CF-27154550BB73
D6FBAEA3-DABB-453E-BC2D-32C3A70C23F3
651A345B-77B1-4073-ABFB-E112005685E4
54D412DC-3F1D-4284-8D2F-61ABFA6D78F4
EE8EB30A-71C3-496F-9C22-91B0A8051315
46911489-BCFC-4B04-8CCE-BD2C4280B9ED
B303D2AF-F1D7-4030-B9E1-0AAB28D7A8AC
6071D940-42E5-40F5-B654-05F0526D2125
55ED3B8A-91E3-4DA2-90C4-2D91EE02066E
9BD2B185-B096-4A85-B42B-99DE7631FDDF
7B76EF20-74DC-4523-A3FF-985508DEC68C
D73CA66E-6FF6-44B4-B2F8-F96C12B7BD0B
A8CAE245-C08F-4EF3-9706-164324F11124
FB63C2C1-52CB-471A-A000-F888CCD98C4F
347A6E45-8AEF-4DA0-B03D-7A304D9717FF

。。。。。。。

你可能感兴趣的:(c,table,insert,Go)