摘要: -- presto 1 SELECT var 2 ,IF(strpos(var,'-')>0,date(substring(var,1,10)),CAST(parse_datetime(CAST(substring(var,1,10) AS varchar), 'yyyyMMdd') AS date 阅读全文
posted @ 2021-08-06 14:53 linbo.yang 阅读(808) 评论(0) 推荐(0) 编辑