UUID insted of ID
Hi, is it possible to replace the "serial" column with UUID generation instead of the standard auto-increment when creating a schema in MySQL?
2 Replies
bumping this!
I am not really sure what's your intention here. But
SERIAL
itself is a number. Quoting from the official docs: (https://dev.mysql.com/doc/refman/8.0/en/numeric-type-syntax.html#:~:text=SERIAL%20is%20an%20alias%20for,for%20NOT%20NULL%20AUTO_INCREMENT%20UNIQUE%20.)
If you want to use UUID, you can use varchar
or any other string based type.