From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: azah azah <izza76@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: default timestamp in postresql
Date: Thu, 29 Jul 2004 15:30:59 +0800
Message-ID: <4108A7B3.2080602@familyhealth.com.au> (raw)
In-Reply-To: <235b1a280407290016621836b4@mail.gmail.com>
References: <235b1a280407290016621836b4@mail.gmail.com>
> 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
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: chriskl@familyhealth.com.au, izza76@gmail.com
Subject: Re: default timestamp in postresql
In-Reply-To: <4108A7B3.2080602@familyhealth.com.au>
References: <235b1a280407290016621836b4@mail.gmail.com> <4108A7B3.2080602@familyhealth.com.au>
* 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