| From: | Zsolt Varga <redax(at)agria(dot)hu> |
|---|---|
| To: | Petter Reinholdtsen <pere(at)hungry(dot)com> |
| Cc: | pgsql-sql(at)postgreSQL(dot)org |
| Subject: | Re: [SQL] 'now - 4 hours ago' ? |
| Date: | 1998-06-19 06:10:23 |
| Message-ID: | Pine.LNX.3.96.980619080816.31358A-100000@lupus.agria.hu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
On Thu, 18 Jun 1998, Petter Reinholdtsen wrote:
| CREATE TABLE testdate(
| received timestamp DEFAULT CURRENT_DATE,
| info text NOT NULL
| );
I think CURRENT_DATE will be parsed to the table creation's time.
so better to use:
CREATE TABLE testdate (
received timestamp DEFAULT timestamp(now()),
info text NOT NULL
);
Redax
.----------------------------------------------------------.
|Zsolt Varga | tel/fax: +36 36 422811 |
| AgriaComputer LTD | email: redax(at)agria(dot)hu |
| System Administrator | URL: http://www.agria.hu/ |
`----------------------------------------------------------'
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marin D | 1998-06-19 07:56:08 | Re: [SQL] FOREIGN KEY ... |
| Previous Message | William D. McCoy | 1998-06-18 19:33:04 | converting float4 to float8 |