职工表:Employee   
 生日字段:Birthday   (如:'2005-04-06'格式的字符串)   
 如:查04月01日至05月31日之间过生日员工。。
 是每月每月的查询。。   

解决方案 »

  1.   

    select * from employee 
    where to_char(to_date(birthdate,'yyyy-mm-dd'),'DD')=to_char(sysdate,'DD')
      

  2.   

    不好意思 ,这是查询当月的,如果要指定月份,可以用 
    where to_char(to_date(birthdate,'yyyy-mm-dd'),'DD') in ('04','05','其他指定月份' )
      

  3.   

    select * from employee 
    where to_char(to_date(birthdate,'yyyy-mm-dd'),'DD') =to_char(sysdate,'DD')
    同意
      

  4.   

    职工表:Employee  
    生日字段:Birthday  (如:'2005-04-06'格式的字符串)  
    如:查04月01日至04月31日之间过生日员工。。 
    是每月每月的查询。。
      

  5.   

    select * 
    from Employee 
    where Birthday between 
    to_date(to_char(sysdate,'yyyymm')||'01','yyyy-mm-dd') and last_day(sysdate) 可以把sysdate替换为你想要的日期
      

  6.   

    SELECT *
      FROM EMPLOYEE
     WHERE BIRTHDAY LIKE &v_month;  --- v_month 输入格式 '2009-05'
     
      

  7.   

    如果Birthday为时间类型的话:
    select * 
    from Employee 
    where to_char(Birthday,'MM') = to_char(sysdate,'MM');如果为字符串的话:
    select * 
    from Employee 
    where substr(Birthday,6,2) = to_char(sysdate,'MM'); 
      

  8.   

    http://blog.csdn.net/whqcfp/archive/2009/05/11/4168747.aspx
      

  9.   


    select * from employee where to_char(Birthday,'mm') = to_date(sysdate, 'mm')
      

  10.   

    还是我自己来回答我自己的帖子,我搞出来了
    select * from employee where to_char(BIRTHDAY,'MM')=  ? 问号代表要查的月份
      

  11.   

    to_char(BIRTHDAY,'MM')=to_char(sysdate,'mm')
      

  12.   

    你的BIRTHDAY到底是什么类型?
    按你说的是'2005-04-06'格式的字符串,但你却用to_char()
      

  13.   


    select * from employee  where EXTRACT(MONTH FROM TO_DATE(birthday, 'yyyy-mm-dd')) = 4;
      

  14.   

    select * from employee where substr(Birthday,6,2)>3 and substr(Birthday,6,2)<6
      

  15.   

    查询当前月份的。
    select * from alarmer.T1 where substr(COLUMN1,6,2)=to_char(sysdate,'MM')
      

  16.   

    select count(*),substr(Birthday,6,2) as Birthday
      from Employee  
    group by substr(Birthday,6,2)查询所有月份过生日的人数
      

  17.   

    select *
    from Employee
    where Birthday like '2009-06%' (红色月份自己填写)
      

  18.   

    select * from user where  right(convert(varchar(10),birthday,120),5) between '07-05' and '07-31'