条件:

1、  数据库中存的是日期时间类型,格式如 2010-7-15

2、  界面使用C#语言;

 

代码类似如下:

  strSql = string.Format("select * from 收支记录表 where 类型='{0}' and (日期 between  #{1}# and  #{2}# ) ", strType, dtStart, dtEnd);

注:ACCESS中日期常量以##来标识;dtStart与dtEnd为日期时间类型,格式类似 2010-7-15 0:00:00。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-05
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
猜你喜欢
  • 2022-02-19
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案