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