Answers for "mysql cast to datetime"

SQL
2

cast string to datetime mysql

SELECT STR_TO_DATE('2017-03-13T14:39:01.123','%Y-%m-%dT%H:%i:%s.%f');
Posted by: Guest on August-07-2020
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