(01.09.2021, 09:13)admin Wrote: Like this, you need to specify the min/max log time as UNIX timestamp:
Code:id = buslib.encodega('1/1/1')
mintime = os.time() - 3600 * 2
maxtime = os.time() - 3600
db:query('DELETE FROM objectlog WHERE address=? AND logtime BETWEEN ? AND ?', id, mintime, maxtime)
thank you, admin
greatÂ
where to learn about these query command?
like if I want it to be depend on value
db:query('DELETE FROM objectlog WHERE value<=0')
doese this work?
Best Regards,