Skip to main content

New answers tagged

0 votes

Change the default value of a string column to real uuid()

With MySQL 8, I use: uuid_bin1 BINARY(16) NOT NULL DEFAULT (UUID_TO_BIN(UUID(), 1)) if that column is the Primary Key.
druud62's user avatar

Top 50 recent answers are included