1
我能做到下面的查询在monetdb中查询日期?
select (current_date-interval '1' day) ,a,b from (select '1' as a, 2 as b) as t2;
但我不能够把变量代替“1”。 我曾尝试没有成功
select (current_date-interval b day) ,a,b from (select '1' as a, 2 as b) as t2;
select (current_date-interval a day) ,a,b from (select '1' as a, 2 as b) as t2;
我也曾尝试铸造,但还是没有结果下面的方法。