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