Re: date

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: date
Date: 2006-02-10 06:38:23
Message-ID: 20060210063823.GC29845@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

am 09.02.2006, um 22:18:09 -0800 mailte superboy143 (sent by Nabble.com) folgendes:
>
> Hello,
>
> How can I write an sql query in postgresql so that I can insert a date into
> a table in the format DD-MM-YYYY, and when I select the date from the table
> I should get the date in the same format.

You can't define the format in the db, but you can define the
output-format with to_char(date, 'DD-MM-YYYY');

HTH, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47215, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

In response to

  • date at 2006-02-10 06:18:09 from superboy143 (sent by Nabble.com)

Responses

  • Re: date at 2006-02-10 16:17:00 from Ken Hill

Browse pgsql-sql by date

  From Date Subject
Next Message Osvaldo Rosário Kussama 2006-02-10 16:07:52 Re: date
Previous Message superboy143 (sent by Nabble.com) 2006-02-10 06:18:09 date