postgresql yyyyMMdd转换成为yyyy-MM-dd

select to_char(99999999,'0000-00-00')

原文地址:https://www.cnblogs.com/woyujiezhen/p/13962595.html