1、替换dual的方法
 oracle: select ‘111’ phone from dual;
 Postgres: select ‘111’ phone ;
 2、char类型格式化成日期
 to_date(‘20230728’,‘yyyyMMdd’)
 3、两个日期取相差的天数(非绝对值,带正负号)
 extract(day from now()-to_date(‘20230728’,‘yyyyMMdd’))
 
4、current_date,now()差异
 
5、ifnull替换方法
 mysql:ifnull(参数1,参数1空的情况下的默认值)
 postgres: coalesce(参数1,参数1空的情况下的默认值)
 6、对指定的日期增加1天
 current_date::TIMESTAMP+‘1 DAY’
 


















