On Sat, Aug 05, 2006 at 02:58:01PM +0200, Eric Bollengier wrote:
> FROM_UNIXTIME(
> UNIX_TIMESTAMP(Media.LastWritten)
> + (Media.VolRetention)
> ) AS expire
Or, if you're using Postgres rather than MySQL...
lastwritten + volretention * interval '1 second' as expire
Do the newer releases of MySQL accept this? It would be convenient if
there were a single way to code these types of "time plus an interval"
calculations that would work with both databases.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users