1.TimeStamp类型转换为指定格式的字符串
SELECT
from_unixtime( unix_timestamp( supply_date, 'yyyyMMddHH' ), 'yyyy/MM/dd' ) supplyDate
FROM
tableName
备注
unix_timestamp( supply_date, 'yyyyMMddHH' ) :将TimeStamp类型的字段转换为时间戳
from_unixtime( unix_timestamp( supply_date, 'yyyyMMddHH' ), 'yyyy/MM/dd' ):把时间戳转换为指定时间格式的字符串