试试看:
select count(*) from tablenameas of timestamp(systimestamp -interval'86400'second)其中86400是距现在86400秒钟(一天)以前的记录
时间太长的话可能不管用的