使用DATE_FORMAT 查询数据库中时间类型显示
SELECT
a.name
,a.uuid
,p.assess_price as assessPrice
,p.assess_date as assessDate
,DATE_FORMAT(p.base_date,'%Y-%m-%d %H:%i:%s') as baseDate
FROM
emp p
使用DATE_FORMAT 查询数据库中时间类型显示
SELECT
a.name
,a.uuid
,p.assess_price as assessPrice
,p.assess_date as assessDate
,DATE_FORMAT(p.base_date,'%Y-%m-%d %H:%i:%s') as baseDate
FROM
emp p