UUIDs

uuid

UUID type

= != ?= ?!= < > <= >=

Comparison operators

uuid_generate_v1mc()

Return a version 1 UUID.

type

uuid

UUIDs - 图1

UUIDs - 图2

UUIDs - 图3

uuid

Universally Unique Identifiers (UUID).

For formal definition see RFC 4122 and ISO/IEC 9834-8:2005.

Every Object has a globally unique property id represented by a UUID value.

function

uuid_generate_v1mc()

UUIDs - 图4

UUIDs - 图5

UUIDs - 图6

std::uuid_generate_v1mc() -> uuid

Return a version 1 UUID.

The algorithm uses a random multicast MAC address instead of the real MAC address of the computer.

  1. db>
  1. select uuid_generate_v1mc();
  1. {1893e2b6-57ce-11e8-8005-13d4be166783}

function

std::uuid_generate_v4()

UUIDs - 图7

UUIDs - 图8

UUIDs - 图9

std::uuid_generate_v4() -> uuid

Return a version 4 UUID.

The UUID is derived entirely from random numbers.

  1. db>
  1. select uuid_generate_v4();
  1. {92673afc-9c4f-42b3-8273-afe0053f0f48}