select eventtime from sysnote where eventtime < to_char('2004-12-21','yyyy-MM-dd')
错在'2004-12-21',这个已经是字符串了,试试这样:
select eventtime from sysnote where eventtime < to_char(SYSDATE-6,'YYYY-MM-DD')