📅  最后修改于: 2022-03-11 15:02:09.341000             🧑  作者: Mango
// Expire after 30 days. If need some other unit, say second,
// use '1 second' instead of '1 day'
pg.query(`
UPDATE
my_table
SET
expire_after = $1 * INTERVAL '1 day'
RETURNING *
`, [30])