I wish to let database column to auto generate around 300++ random alphanumeric string every time I insert a new entry to the database. The code below only capable of size of 36.
DELIMITER ;;
CREATE TRIGGER testdata
BEFORE INSERT ON testdata
FOR EACH ROW
BEGIN
IF new.token IS NULL THEN
SET new.token = uuid();
END IF;
END
;;
Thanks for everyone that answer this question.