Re: default timestamp in postresql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Previously in mysql table field as below , will be add automatic in
database when execute insert statement.

             = submittime timestamp NOT NULL

But in postresql the timestamp cannot insert automatic when execute
insert statement.
How can I solve this problem instead of change the php code?

Make it:

submittime timestamp not null default current_timestamp

Chris



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux