Re: update field table..... - Mailing list pgsql-general

From Oliver Elphick
Subject Re: update field table.....
Date
Msg-id 200101141315.f0EDFTN32302@linda.lfix.co.uk
Whole thread Raw
In response to update field table.....  ("Muhammad Rusydi" <rusydi@cbn.net.id>)
List 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.Elphick@lfix.co.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



pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: performance hit with --enable-debug
Next
From: "Oliver Elphick"
Date:
Subject: Re: stupid select question...