Closed waynetheisinger closed 1 year ago
VARCHAR is not a valid type to cast into. According to the MySQL docs you can only cast to:
BINARY[(N)] CHAR[(N)] DATE DATETIME DECIMAL[(M[,D])] SIGNED [INTEGER] TIME UNSIGNED [INTEGER] I think your best-bet is to use CHAR.
Nice spot!
VARCHAR is not a valid type to cast into. According to the MySQL docs you can only cast to:
BINARY[(N)] CHAR[(N)] DATE DATETIME DECIMAL[(M[,D])] SIGNED [INTEGER] TIME UNSIGNED [INTEGER] I think your best-bet is to use CHAR.