select (CAST(substring_index(now(),"天",1) AS decimal(10,2))*24)
+(CAST(substring_index(substring_index(now(),"天",-1),"时",1) AS decimal(10,2)))
+(CAST(substring_index(substring_index(now(),"时",-1),"分",1) AS decimal(10,2)) /60)
as runtime2 dual
Mysql时间日期转换中文天时分
最新推荐文章于 2022-04-08 15:53:29 发布