查某时间段的sql语句/////不等于

来源:互联网 发布:简单的sql注入语句 编辑:程序博客网 时间:2024/06/02 02:13




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<>'拆除'