From: Michael Fuhr <mike@fuhr.org>
To: Muhyiddin A.M Hayat <middink@indo.net.id>
Cc: pgsql-sql@postgresql.org
Subject: Re: Create Calendar
Date: Fri, 10 Dec 2004 21:11:52 -0700
Message-ID: <20041211041152.GA63199@winnie.fuhr.org> (raw)
In-Reply-To: <003801c4deee$451eb6c0$1f00a8c0@middinks>
References: <003801c4deee$451eb6c0$1f00a8c0@middinks>
On Sat, Dec 11, 2004 at 03:26:33AM +0800, Muhyiddin A.M Hayat wrote:
> How to create Calendar using Function/View.
> For example i would like to display date 2004-12-01 to 2004-12-20.
You could write a function that returns SETOF DATE. Some sections
of the documentation you'll want to study are:
"Data Types" chapter, "Date/Time Types" section
"Functions and Operators" chapter, "Date/Time Functions and
Operators" section
"PL/pgSQL - SQL Procedural Language" chapter, especially the
"Control Structures" section
If you have trouble then please post what you've tried with an
explanation of how you'd like it to work and a description of
what actually happens.
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mike@fuhr.org, middink@indo.net.id
Subject: Re: Create Calendar
In-Reply-To: <20041211041152.GA63199@winnie.fuhr.org>
* 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