Re: default timestamp in postresql

Поиск
Список
Период
Сортировка
От azah azah
Тема Re: default timestamp in postresql
Дата
Msg-id 235b1a2804072900586733ae40@mail.gmail.com
обсуждение исходный текст
Ответ на Re: default timestamp in postresql  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-php
thanks all, it solve now.

On Thu, 29 Jul 2004 15:30:59 +0800, Christopher Kings-Lynne
<chriskl@familyhealth.com.au> wrote:
> > 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 по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: default timestamp in postresql
Следующее
От: Daniel Struck
Дата:
Сообщение: Re: [ADMIN] Secure DB Systems - How to