Last updated 6 months ago
Creates a unique value of type uniqueidentifier. ().
Outputs may differ because it generates a unique ID in runtime
Code:
Result:
No issues were found.
No related EWIs.
NEWID ( )
UUID_STRING()
+------------------------------------+ |ID | +------------------------------------+ |47549DDF-837D-41D2-A59C-A6BC63DF7910| +------------------------------------+
+------------------------------------+ |ID | +------------------------------------+ |6fd4312a-7925-4ad9-85d8-e039efd82089| +------------------------------------+
SELECT NEWID ( ) AS ID;
SELECT UUID_STRING( ) AS ID;