ASA SQL Reference
SQL Functions
Alphabetical list of functions
Converts a string value to a unique identifier (UUID or GUID) value.
STRTOUUID( string-expression )
string-expression A string in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Converts a string in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where x is a hexadecimal digit, to a unique identifier value. If the string is not a valid UUID string, NULL is returned.
This function is useful for inputting UUID values into an Adaptive Server Anywhere database.
SQL/92 Vendor extension.
SQL/99 Vendor extension.
Sybase Not supported by Adaptive Server Enterprise.
NEWID function [Miscellaneous]
CREATE TABLE T ( pk uniqueidentifier primary key, c1 int); INSERT INTO T (pk, c1) VALUES (STRTOUUID ('12345678-1234-5678-9012-123456789012'), 1);