Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql date to string

  -- Convert the current date to YYYYMM format
  SELECT DATE_FORMAT(NOW(), '%Y%m');
  # 201302
Source by www.sqlines.com #
 
PREVIOUS NEXT
Tagged: #mysql #date #string
ADD COMMENT
Topic
Name
5+2 =