Calculation of non-database columns

[prev] [thread] [next] [Date index for 2005/06/02]

From: Uwe Voelker
Subject: Calculation of non-database columns
Date: 21:21 on 02 Jun 2005
Hello,

I have a table with two dates ('from' and 'to'). I inflate them (with
has_a) to a DateTime object.

Now I want to calculate the timespan between these two DateTime objects
everytime the record is read from the database. Can I use TEMP columns
for this? How? (The problem is not the calculation itself, it's the 
Class-DBI context.)

Or should I use trigger? But which one? The two DateTime objects need
already to be inflated.

Thank you very much,

good bye,
Uwe

Calculation of non-database columns
Uwe Voelker 21:21 on 02 Jun 2005

Re: Calculation of non-database columns
Cees Hek 23:02 on 02 Jun 2005

Re: Calculation of non-database columns
Uwe Voelker 09:57 on 03 Jun 2005

Re: Calculation of non-database columns
Cees Hek 15:46 on 03 Jun 2005

Re: Calculation of non-database columns
Uwe Voelker 11:56 on 04 Jun 2005

Generated at 16:36 on 28 Jul 2005 by mariachi v0.52