select * from table where time>2006-05-06 and time <2006-08-08 这样大概就行了
select * from table where time between '2006-6-1' and '2006-6-30'
select * from table where time>2006-05-06 and time <2006-08-08 java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] 準則運算式的資料類型不符合。
select * from table where time>2006-05-06 and time <2006-08-08 java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] 準則運算式的資料類型不符合。 時間 也算是字符型的 怎么能比大小呢
我不同意 select * from table where time>'2006-05-06' and time<'2006-08-08' 应该可以运行的啊
这样大概就行了
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] 準則運算式的資料類型不符合。
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] 準則運算式的資料類型不符合。
時間 也算是字符型的 怎么能比大小呢
select * from table where time>'2006-05-06' and time<'2006-08-08'
应该可以运行的啊