I need to get data from DB scadalts from last day.
I have data in table pointValues where is column pointValue and ts but is not timestamp.
Column ts
is type BIGINT(20)
Checking ts is unixtime
SELECT
pointValue,
ts,
from_unixtime(ts),
YEAR(from_unixtime(ts)),
MONTH(from_unixtime(ts)),
DAY(from_unixtime(ts))
FROM
pointValues;
The result null
is wrong is not unixtime.
I don't know how to create condition where
because - I don't know how to interpret value in column ts
.
Column
ts
should be interpreted with greater accuracy.eg:
And we may get values from last day eg:
Thanks
Maybe it will be useful also