pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Date Problem
3+ messages / 3 participants
[nested] [flat]

* Date Problem
@ 2003-05-01 06:35 Ramesh PAtel  <ramesh@banas.guj.nic.in>
  2003-05-01 07:31 ` Re: Date Problem Hargobind Singh <hgs@acplexports.com>
  2003-05-01 08:00 ` Re: Date Problem Jean-Michel Chabanne <jeanmichel.chabanne@free.fr>
  0 siblings, 2 replies; 3+ messages in thread

From: Ramesh PAtel @ 2003-05-01 06:35 UTC (permalink / raw)
  To: pgsql-admin

Hi All

now Problem is 

I have to date  From = '2003-04-01' and To='2003-05-12'
now i want to use  use date butween  From and To.
and each date one bye one use in query. so how to 

i  increse date one bye one

Please Help me.

Ramesh Patel




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Date Problem
  2003-05-01 06:35 Date Problem Ramesh PAtel  <ramesh@banas.guj.nic.in>
@ 2003-05-01 07:31 ` Hargobind Singh <hgs@acplexports.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Hargobind Singh @ 2003-05-01 07:31 UTC (permalink / raw)
  To: Ramesh PAtel <ramesh@banas.guj.nic.in>; pgsql-admin

Can u plz. elaborate that what do you want to do ? do you want a new date in
each row,, or u want to run updaet query or what ?

Hargobind Singh
--------------------------
Software Project Manager,
ACPL Exports,
132, Industrial Estate, Nunhai,
Agra - 282 006 (India)
Tel: +91 562 2280870-1-2
Fax: +91 562 2344243
----- Original Message -----
From: "Ramesh PAtel " <ramesh@banas.guj.nic.in>
To: <pgsql-admin@postgresql.org>
Sent: Thursday, May 01, 2003 12:05 PM
Subject: [ADMIN] Date Problem


> Hi All
>
> now Problem is
>
> I have to date  From = '2003-04-01' and To='2003-05-12'
> now i want to use  use date butween  From and To.
> and each date one bye one use in query. so how to
>
> i  increse date one bye one
>
> Please Help me.
>
> Ramesh Patel
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Date Problem
  2003-05-01 06:35 Date Problem Ramesh PAtel  <ramesh@banas.guj.nic.in>
@ 2003-05-01 08:00 ` Jean-Michel Chabanne <jeanmichel.chabanne@free.fr>
  1 sibling, 0 replies; 3+ messages in thread

From: Jean-Michel Chabanne @ 2003-05-01 08:00 UTC (permalink / raw)
  To: Ramesh PAtel <ramesh@banas.guj.nic.in>; +Cc: pgsql-admin

Ramesh PAtel wrote:

>Hi All
>
>now Problem is 
>
>I have to date  From = '2003-04-01' and To='2003-05-12'
>now i want to use  use date butween  From and To.
>and each date one bye one use in query. so how to 
>
>i  increse date one bye one
>
>Please Help me.
>
>Ramesh Patel
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
>
>
>  
>
You may do this :

 SELECT DATE (DATE '2003-04-01' + INTERVAL '24:00:00');


or build a PL/PGSQL function as this :

 CREATE FUNCTION onedaymore(DATE) RETURNS DATE AS '
   DECLARE
   olddate ALIAS FOR $1;
   newdate date;
   BEGIN
     newdate :=  olddate + INTERVAL ''24:00:00'';
     RETURN 
newdate;                                                          
   END;
 '  LANGUAGE 'plpgsql';


-- 
Jean-Michel Chabanne
77450 MONTRY (FRANCE)
48" 54' N - 2" 49' E
Powered by Linux




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-05-01 08:00 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-01 06:35 Date Problem Ramesh PAtel  <ramesh@banas.guj.nic.in>
2003-05-01 07:31 ` Hargobind Singh <hgs@acplexports.com>
2003-05-01 08:00 ` Jean-Michel Chabanne <jeanmichel.chabanne@free.fr>

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