Re: default timestamp in postresql

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: default timestamp in postresql
Дата
Msg-id 4108A7B3.2080602@familyhealth.com.au
обсуждение исходный текст
Ответ на default timestamp in postresql  (azah azah <izza76@gmail.com>)
Ответы Re: default timestamp in postresql  (azah azah <izza76@gmail.com>)
Список pgsql-php
> 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


В списке pgsql-php по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: default timestamp in postresql
Следующее
От: azah azah
Дата:
Сообщение: Re: default timestamp in postresql