如何向NOW添加动态(基于列)天数?
SELECT NOW() + INTERVAL a.number_of_days "DAYS" AS "The Future Date" FROM a;
其中a.number_of_days是一个整数?
我通常将数字乘以间隔“1天”或类似数字,例如:
select now() + interval '1 day' * a.number_of_days from a;