pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: azah azah <izza76@gmail.com>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-php@postgresql.org
Subject: Re: default timestamp in postresql
Date: Thu, 29 Jul 2004 15:58:36 +0800
Message-ID: <235b1a2804072900586733ae40@mail.gmail.com> (raw)
In-Reply-To: <4108A7B3.2080602@familyhealth.com.au>
References: <235b1a280407290016621836b4@mail.gmail.com>
	<4108A7B3.2080602@familyhealth.com.au>

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
> 
>



view thread (5+ messages)  latest in thread

Message-ID: <235b1a2804072900586733ae40@mail.gmail.com>
Permalink:  ../235b1a2804072900586733ae40@mail.gmail.com/
Also on:    postgresql.org/message-id/235b1a2804072900586733ae40@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: izza76@gmail.com, chriskl@familyhealth.com.au
  Subject: Re: default timestamp in postresql
  In-Reply-To: <235b1a2804072900586733ae40@mail.gmail.com>
  References: <235b1a280407290016621836b4@mail.gmail.com> <4108A7B3.2080602@familyhealth.com.au> <235b1a2804072900586733ae40@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox