在oracle中呢?

解决方案 »

  1.   

    只有字符型才有模糊查询,数值型和日期型可以用大于,小于等
    例:
      d > '2003-6-9' and d < '2003-9-6'
      n between 10 and 100
      

  2.   

    例如:
    select * from sysobjects where refdate>'2000-08-07' and refdate<'2008-08-22'
    这样不行吗?可我一直是这样的哈?
      

  3.   

    Where条件中把字段先转换为字符型
    如,销售日期是九月的记录,注意转换成char要比varchar好
    where cast(sale_date as char(20)) like '2003-09-%'