Rule

From: "David Hofmann" <mor4321(at)hotmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Rule
Date: 2005-06-08 19:51:35
Message-ID: BAY23-F8CFA7DB94693F0651B97BBBFD0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have a table with 3 fields, id, s_data, and time_stamp. The time_stamp
field is set to now() by deault.

The program that uses this table only uses the id and s_data file. I added
and use the time_stamp field to delete old records after a certain time.

What I want to do is setup some kind of rule so that whenever a s_data field
is updated, that the time_stamp gets update to the current time/date. The
program regretab

I'm not really familar with rules, I've only used them in a certain places
and very limitedly.

Any help would be greatly appercated.

David Hofmann

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Responses

  • Re: Rule at 2005-06-08 20:06:56 from Bruno Wolff III

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2005-06-08 20:06:56 Re: Rule
Previous Message Rajesh Kumar Mallah 2005-06-08 17:20:12 Re: plpgsql dynamic record access