age() function usage - Mailing list pgsql-sql

From Marcin Krawczyk
Subject age() function usage
Date
Msg-id 95f6bf9b0801251106h6577fa94j508574db50030b53@mail.gmail.com
Whole thread Raw
Responses Re: age() function usage  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-sql
Hi all. I am trying to determine the way to pass a variable/field value to an age() function, query looks something
like:<br/><br />SELECT age(timestamp data_zakonczenia_fakt) FROM kip_pracownicy_umowy WHERE id_pracownika = 8<br /><br
/>data_zakonczenia_faktbeing char column equal to say '1993-11-30'.<br />Such approach won't work, can anyone tell me
theway to do it?<br /><br />SELECT age(timestamp '1993-11-30') works great.<br />Same story with
age(timestamp '2008-01-01', timestamp '1993-11-30').<br /><br />Thanks in advance<br />mk<br /> 

pgsql-sql by date:

Previous
From: Frank Bax
Date:
Subject: Re: regex_replace problem
Next
From: "Scott Marlowe"
Date:
Subject: Re: age() function usage