GitHubContribute in GitHub: Edit online

The guid data type

The guid (uuid, uniqueid) data type represents a 128-bit globally-unique value.

Note

Currently support for the guid type is incomplete. The main gap is the lack of an index on columns of this type, affecting the performance of queries that predicate over this type. We strongly recommend that teams use values of type string instead.

guid literals

To represent a literal of type guid, use the following format:

guid(74be27de-1e4e-49d9-b579-fe0b331d3642)

The special form guid(null) represents the null value.