T
Tiger_Dxj
Unregistered / Unconfirmed
GUEST, unregistred user!
我在delphi程序使用ADO控件通过odbc调用access数据库,想实现日期检索数据,请问sql
语句如何写???
我写成
Select * From Patient Where Name = '99' and Date between 2001-7-2 and 2001-8-2
或
Select * From Patient Where Name = '99' and Date >= 2001-7-2 and Date <= 2001-8-2
都检索不到记录。我用的delphi5,ACCESS 2000 的数据库。
语句如何写???
我写成
Select * From Patient Where Name = '99' and Date between 2001-7-2 and 2001-8-2
或
Select * From Patient Where Name = '99' and Date >= 2001-7-2 and Date <= 2001-8-2
都检索不到记录。我用的delphi5,ACCESS 2000 的数据库。