Friday 25 October 2019

MYSQL UUID

MySQL UUID example

Let’s take a look at an example of using UUID as the primary key.
The following statement creates a new table named customers:
To insert UUID values into the id column, you use UUID() and UUID_TO_BIN() functions as follows:
To query data from a UUID column, you use BIN_TO_UUID() function to convert binary format to human-readable format:


MySQL UUID Example


No comments:

Post a Comment