Re: default timestamp in postresql

From: azah azah <izza76(at)gmail(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: default timestamp in postresql
Date: 2004-07-29 07:58:36
Message-ID: 235b1a2804072900586733ae40@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

thanks all, it solve now.

On Thu, 29 Jul 2004 15:30:59 +0800, Christopher Kings-Lynne
<chriskl(at)familyhealth(dot)com(dot)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
>
>

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Daniel Struck 2004-07-29 09:16:08 Re: [ADMIN] Secure DB Systems - How to
Previous Message Christopher Kings-Lynne 2004-07-29 07:30:59 Re: default timestamp in postresql