📜  postgresql 创建表默认值时间戳 - SQL 代码示例

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

代码示例1
CREATE TABLE `table_name`(
    `id` SERIAL PRIMARY KEY,
    `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `modified_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
)