在Postgres中,我想存储表的最后更新/插入时间。Microsoft SQL Server提供了一种timestamp由数据库自动维护的类型。
timestamp
但是timestamp在Postgres中的工作原理有所不同,它不会自动更新,并且列始终为null。
postgresql timestamp
postgresql ×1
timestamp ×1