2
如果我在PL/pgSQL中有一個函數需要時間戳,那麼確定過去的日期是否少於12個月的最佳方法是什麼?檢查PL/pgSQL中的時間戳
例如
CREATE FUNCTION do_something(foo timestamp) ....
-- IF foo is less than 12 months in the past THEN
-- do something
-- END IF;
END;