select ex.* from EX_SUB_BILLS exwhere to_char(ex.create_time, 'yyyy-MM-dd') >= '2017-10-16'and to_char(ex.create_time, 'yyyy-MM-dd') <= '2017-10-25'要注意时间的类型,我这里为String类型。