Check out example codes for "sql create new guid". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com