📜  node-pg 间隔 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:09.341000             🧑  作者: Mango

代码示例1
// 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])