Answer the question
In order to leave comments, you need to log in
Need to change the time format in the request, how?
Good afternoon, please help me change the time format from mysql to postgresql
select h.name AS host_name, i.name AS item_name, i.key_ as item_key, FROM_UNIXTIME(hs.clock) AS last_time, hs.value, hs.logeventid
from
hosts h
join items i on h.hostid = i.hostid
join history_log hs on i.itemid = hs.itemid
where hs.clock > UNIX_TIMESTAMP() - 86400 and i.hostid = '10458' and hs.logeventid = '4625'
order by last_time, item_name
Answer the question
In order to leave comments, you need to log in
time format from mysql to postgresql
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question