2
我在Informix中執行以下操作來刪除超過20秒的行。Informix使用參數定義INTERVAL
delete from sometable
where someDateColumn < (current - interval (20) second to second);
不過,我想使間隔在存儲過程中配置的,但我不能做
CREATE PROCEDURE i_hate_informix (prm_timeframe int)
DELETE sometable
WHERE someDateColumn < (current - interval (prm_timeframe) second to second);
END PROCEDURE;
我討厭informix。 – 2009-05-28 10:47:27