-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

Parixit
  • 3,829
  • 3
  • 37
  • 61
junaib
  • 21
  • 2
  • 10

1 Answers1

0

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)
danblack
  • 12,130
  • 2
  • 22
  • 41