Converts a BINARY(16) UUID back to its string representation. The inverse of UUID_TO_BIN().
VARCHAR(36)Diperbarui: 13 Jun 2026BIN_TO_UUID(binary_uuid[, swap_flag])The UUID in binary format
Set to 1 if the binary was stored with the swap flag
1 SELECT BIN_TO_UUID(id, 1) AS uuid_string 2 FROM entities;
Convert a binary UUID to a readable string for display.
1 SELECT BIN_TO_UUID(id, 1) AS id, 2 name, 3 email 4 FROM users;
Output human-readable UUIDs in an API response.
1 SELECT BIN_TO_UUID(session_id, 1) AS session, 2 created_at 3 FROM sessions 4 ORDER BY created_at DESC 5 LIMIT 10;
View recent sessions with readable UUID strings.
Sudah paham BIN_TO_UUID? Latih langsung di browser
Latihan interaktif, langsung di browser.