Help for this page
$ST=$DBH->prepare(<<EOSQL); if not exists (select * from tbl where timestamp > ?) ... EOSQL $ST->execute($timestamp, $hostname, $timestamp, $hostname, $hostname, +$timestamp);
$ST=$DBH->prepare(<<EOSQL); if not exists (select * from tbl where hostname=?) ... $ST->execute($hostname, $hostname, $timestamp, $hostname, $timestamp, $timestamp, $hostname);