X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3F76ED1B570 for ; Fri, 21 Nov 2003 18:03:25 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 54689-04 for ; Fri, 21 Nov 2003 14:02:54 -0400 (AST) Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by svr1.postgresql.org (Postfix) with ESMTP id 4A4D7D1D3FB for ; Fri, 21 Nov 2003 14:02:52 -0400 (AST) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id hALI6HO13415; Fri, 21 Nov 2003 19:06:17 +0100 Received: from bigfoot.com (gmendola.mm.eutelsat.org [194.214.173.50]) by nts-03.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id hALHqBR15964; Fri, 21 Nov 2003 18:52:11 +0100 Message-ID: <3FBE52FC.3060503@bigfoot.com> Date: Fri, 21 Nov 2003 19:01:32 +0100 From: Gaetano Mendola User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "pgsql-sql@postgresql.org" Cc: nobody Subject: Re: How to quote date value? References: In-Reply-To: X-Enigmail-Version: 0.81.7.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/262 X-Sequence-Number: 16077 nobody wrote: > I have found it in documentation, it is single quote. But it does not > explain why > > SELECT '1/11/2003' AS "InvoiceDate"; > > returns "unknown" data type instead of "date". Why not a string ? or a fancy custom type ? Regards Gaetano Mendola