Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-php by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group