Re: default timestamp in postresql

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

> 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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message azah azah 2004-07-29 07:58:36 Re: default timestamp in postresql
Previous Message Michael Glaesemann 2004-07-29 07:22:27 Re: default timestamp in postresql