forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
21 lines
2.2 KiB
HTML
21 lines
2.2 KiB
HTML
<a name="EN-US_TOPIC_0000001098990934"></a><a name="EN-US_TOPIC_0000001098990934"></a>
|
|
|
|
<h1 class="topictitle1">UUID Type</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001098990934__en-us_topic_0059778995_p167785894112">The data type <strong id="EN-US_TOPIC_0000001098990934__b842352706154317">UUID</strong> stores Universally Unique Identifiers (UUID) as defined by RFC 4122, ISO/IEF 9834-8:2005, and related standards. This identifier is a 128-bit quantity that is generated by an algorithm chosen to make it very unlikely that the same identifier will be generated by anyone else in the known universe using the same algorithm.</p>
|
|
<p id="EN-US_TOPIC_0000001098990934__abdba9127d9a845d9b38f7a9e1975d48d">Therefore, for distributed systems, these identifiers provide a better uniqueness guarantee than sequence generators, which are only unique within a single database.</p>
|
|
<p id="EN-US_TOPIC_0000001098990934__a8fd4e97cca994f21821f73d202e49bbc">A UUID is written as a sequence of lower-case hexadecimal digits, in several groups separated by hyphens, specifically a group of 8 digits followed by three groups of 4 digits followed by a group of 12 digits, for a total of 32 digits representing the 128 bits. An example of a UUID in this standard form is:</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001098990934__s8b658fa9b3d4425d9312f887345e3c3a">a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11</pre>
|
|
<p id="EN-US_TOPIC_0000001098990934__afe10b227d53f425cadbd9262ee5d632a"><span id="EN-US_TOPIC_0000001098990934__text1195885275">GaussDB(DWS)</span> also accepts the following alternative forms for input: use of upper-case letters and digits, the standard format surrounded by braces, omitting some or all hyphens, and adding a hyphen after any group of four digits. Examples</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001098990934__s2a74723d06be4e32b4deb75ba488e932">A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11
|
|
{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}
|
|
a0eebc999c0b4ef8bb6d6bb9bd380a11
|
|
a0ee-bc99-9c0b-4ef8-bb6d-6bb9-bd38-0a11</pre>
|
|
<p id="EN-US_TOPIC_0000001098990934__acfc93d3c0cc64d3eb01df98739c71931">Output is always in the standard form.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0008.html">Data Types</a></div>
|
|
</div>
|
|
</div>
|
|
|