日期时间型字段的值-该日期的值<0.5表示上午,>0.5表示下午
解决方案 »
- DBLookupComboboxEh1怎么才能让用户自己可以写,而不是用已经有的字段值?
- 如何将字段内的数字代码在dbgrid输出显示时替换为相应的中文意思啊?
- 合并数据库表
- 打开一个数据文件如何得到它的字段名?太菜了,都不好意思问。
- 用delphi 怎样访问 Automation (OLE/COM)对象?
- 100高分求Delphi 7.0 SP1
- 怎么样控制报表里面的行间距离,用什么控件的什么属性控制!
- 关于ClientDataSet,欢迎讨论
- 关键字:ComboBox
- 如何用指针对数据库表中
- 如何显示DBchart的内容!
- 怎样把一个表一列中的内容全部加到dbcombobox的iterm中啊?一个是tstring一个是tstrings。我是初学者
delphi的开始菜单里有
select * from tablename
where datetimefield<(Integer(now)+0.5)
and datetimefield>(Integer(now)-1);
下午:
select * from tablename
where datetimefield>(Integer(now)+0.5)
and datetimefield<(Integer(now)+1);
select * from tablename
where datetimefield<(Integer(now)+0.5)
and datetimefield>(Integer(now));