當前位置:編程學習大全網 - 網站源碼 - access數據庫查詢中between函數的返回值是什麽?

access數據庫查詢中between函數的返回值是什麽?

首先,access中沒有between函數,但是它支持的SQl語句中有壹個Between語句,意思是介於A和B之間,可以作為A和B之間使用,用法如下:

例如:

假設您需要查詢表中日期在starttime和endtime之間的記錄。字段名為addtime,表名info如下。

start time = " 2009-2-3 10:00:00 "

end time = " 2009-4-3 10:00:00 "

strSql = " select * from info where add time between # "+start time+" # and # "+end time+" # ";

註意,壹定不能忘記# here,它與SQLserver不同。

  • 上一篇:乘法表的Php面向對象實現
  • 下一篇:幫助網站源代碼
  • copyright 2024編程學習大全網