mysql cast int to tinyint code example
Example: mysql cast to varchar
SELECT CAST(aField as UNSIGNED) from table;
-- for VARCHAR use CHAR(50), INT use UNSIGNED
SELECT CAST(aField as UNSIGNED) from table;
-- for VARCHAR use CHAR(50), INT use UNSIGNED