Answers for "mysql cast date to string"

SQL
0

mysql parse int

SELECT CAST(PROD_CODE AS INT) FROM PRODUCT
Posted by: Guest on November-08-2020
0

mysql date to string

-- Convert the current date to YYYYMM format
  SELECT DATE_FORMAT(NOW(), '%Y%m');
  # 201302
Posted by: Guest on July-29-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