Converts a string value to a unique identifier (UUID or GUID) value.
Parameter |
Description |
---|---|
string-expression |
A string in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
UNIQUEIDENTIFIER
CREATE TABLE T ( pk uniqueidentifier primary key, c1 int); INSERT INTO T (pk, c1) VALUES (STRTOUUID ('12345678-1234-5678-9012-123456789012'), 1);