我一個人事管理系統,每天都要人事登記,我隨便選擇2個時間段 比如 2006-05-06
到2006-08-08 統計這個時間段的人數 ,而且輸出登記人的信息

解决方案 »

  1.   

    select * from table where time>2006-05-06  and time <2006-08-08
    这样大概就行了
      

  2.   

    select * from table where time between '2006-6-1' and '2006-6-30'
      

  3.   

    select * from table where time>2006-05-06  and time <2006-08-08
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] 準則運算式的資料類型不符合。   
      

  4.   

    select * from table where time>2006-05-06  and time <2006-08-08
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] 準則運算式的資料類型不符合。
    時間 也算是字符型的 怎么能比大小呢
      

  5.   

    我不同意
    select * from table where time>'2006-05-06' and time<'2006-08-08'
    应该可以运行的啊