【发布时间】:2019-12-19 17:23:13
【问题描述】:
我正在尝试在案例陈述中添加日期
select the_date,
(case
when the_date like '%years%' then dateadd(year,REPLACE(REGEXP_SUBSTR(condition_, '-?[0-9]+\.? years'),'years',''),the_date)
end)
from customer
但我收到以下错误:
SQL 错误 [500310] [42883]:亚马逊无效操作: function pg_catalog.date_add("unknown", text, timestamp with time zone) 不存在;
有人可以帮忙吗?
【问题讨论】:
标签: amazon-web-services date amazon-redshift