X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C974252844 for ; Mon, 23 May 2005 07:32:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30257-08 for ; Mon, 23 May 2005 10:32:00 +0000 (GMT) Received: from matrix.gatewaynet.com (matrix.gatewaynet.com [217.19.69.50]) by svr1.postgresql.org (Postfix) with ESMTP id 17F4B52879 for ; Mon, 23 May 2005 07:31:54 -0300 (ADT) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id j4NAHF9W008745; Mon, 23 May 2005 13:17:15 +0300 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.8/8.12.8/Submit) with ESMTP id j4NAHFjn008741; Mon, 23 May 2005 13:17:15 +0300 Date: Mon, 23 May 2005 13:17:15 +0300 (EEST) From: Achilleus Mantzios To: palanivel.kumaran@scandent.com Cc: pgsql-sql@postgresql.org Subject: Re: Need clarification In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200505/183 X-Sequence-Number: 21496 O palanivel.kumaran@scandent.com έγραψε στις May 23, 2005 : > > > > > how can retrieve rows where the datedifference is more than 30... more than 30 in what units? years,days,milliseconds?? > assume there exists a field named 'datacreated' which is of type 'date'. I > need to compare it with the current date and need to extract the matched > rows.... > select * from footable where datacreated = now()::date; > thanks in advance. > > Palanivel > > Important Email Information :- The information in this email is > confidential and may be legally privileged. It is intended solely for > the addressee. Access to this email by anyone else is unauthorized. If > you are not the intended recipient, any disclosure, copying, distribution or > any action taken or omitted to be taken in reliance on it, is prohibited > and may be unlawful. If you are not the intended addressee please contact > the sender and dispose of this e-mail immediately. > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > -- -Achilleus