select * from table_name t where
t.createtime < to_date('2017-9-8','yyyy-MM-dd') and t.createtime > to_date('2017-8-25','yyyy-MM-dd');
select * from tablename n where n.state<>'拆除'
t.createtime < to_date('2017-9-8','yyyy-MM-dd') and t.createtime > to_date('2017-8-25','yyyy-MM-dd');
select * from tablename n where n.state<>'拆除'