pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ing. Roberto Andrade <randrade@campus.iztacala.unam.mx>
To: sql <pgsql-sql@postgreSQL.org>
Subject: Use of 'default TEXT now()'
Date: Wed, 24 Mar 1999 14:19:59 -0600 (CST)
Message-ID: <Pine.SOL.3.91.990324141218.6717E-100000@campus> (raw)

Hi:

I'm writing an application where I have to use a datetime field. In this
field we'll keep the date and time of the coments about some tasks.

I am not sure about the right use of 'default', should I use:

fecha_obs	datetime default TEXT now()

or

fecha_obs	datetime default now() ?

When I must use TEXT ?

I want to retrieve the fields in datetime order.

TIA

                       Roberto Andrade Fonseca
                Universidad Nacional Autónoma de México

                     Teléfonos: 623-1154, 623-1119
               e-mail: randrade@campus.iztacala.unam.mx




view thread (5+ messages)  latest in thread

Message-ID: <Pine.SOL.3.91.990324141218.6717E-100000@campus>
Permalink:  ../Pine.SOL.3.91.990324141218.6717E-100000@campus/
Also on:    postgresql.org/message-id/Pine.SOL.3.91.990324141218.6717E-100000@campus

 · 

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-sql@postgresql.org
  Cc: randrade@campus.iztacala.unam.mx
  Subject: Re: Use of 'default TEXT now()'
  In-Reply-To: <Pine.SOL.3.91.990324141218.6717E-100000@campus>
  References: <Pine.SOL.3.91.990324141218.6717E-100000@campus>

* 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