Sql create new guid

This article is tagged with: Sql create new guid and mysql

sql create new guid

-- Creating a local variable with DECLARE/SET syntax.
DECLARE @myid uniqueidentifier
SET @myid = NEWID()
PRINT 'Value of @myid is: '+ CONVERT(varchar(255), @myid)

This article is tagged with: Sql create new guid and mysql