Error:
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VARBINARY(10))' at line 1
Error:
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VARBINARY(10))' at line 1
VARBINARY
isn't a type (data types in columns are slightly different)
I think you want something like:
select cast(UUID() as CHAR(36) CHARACTER SET BINARY)