Question : postgresql create table default value timestamp
Answered by : harendra
CREATE TABLE `table_name`( `id` SERIAL PRIMARY KEY, `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `modified_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
)
Source : | Last Update : Thu, 30 Sep 21