Re: update field table.....

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: "Muhammad Rusydi" <rusydi(at)cbn(dot)net(dot)id>
Cc: "Postgres General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: update field table.....
Date: 2001-01-14 13:15:27
Message-ID: 200101141315.f0EDFTN32302@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Muhammad Rusydi" wrote:

>i want to update some of my field on table...
>--------------------
>sem period
>--------------------
> 3 2000/2001
> and i want it will be updated automatically to be.....
>--------------------
>sem period
>--------------------
> 4 2001/2002
>if date on the system or server (Postgres) changed on if the month changed
>from February to March....and it'll also be update...
>--------------------
>sem period
>--------------------
> 5 2002/2003
>if the month change from Agustus to September....

You can't do this in PostgreSQL. You should use cron to run a script to
do these updates at the appropriate times.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"If we confess our sins, he is faithful and just to
forgive us our sins, and to cleanse us from all
unrighteousness." I John 1:9

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2001-01-14 13:25:59 Re: stupid select question...
Previous Message Peter Eisentraut 2001-01-14 12:10:26 Re: performance hit with --enable-debug