Answers for "convert to int mysql"

SQL
1

string to int mysql

SELECT field,CONVERT(field,UNSIGNED INTEGER) AS num
FROM table;
Posted by: Guest on August-02-2021
1

mysql cast as int

SELECT CAST(column AS UNSIGNED);
Posted by: Guest on September-05-2021
0

mysql cast to varchar

SELECT CAST(aField as UNSIGNED) from table; 
-- for VARCHAR use CHAR(50), INT use UNSIGNED
Posted by: Guest on June-22-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language