|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
gasyu (gasyu) |
★☆☆☆☆ |
-
|
普通会员 |
|
2003/4/30 11:52:14 |
标题: |
|
加入我的收藏 |
楼主: |
Query1->SQL->Add("where 起始站="+IntToStr(start_city)+" and 发车时间>DateValue('1899-12-30 20:00')+TimeValue('1899-12-30 20:00')");是对的!!!!!
而Query1->SQL->Add("where 起始站="+IntToStr(start_city)+" and 发车时间>DateValue('"+DateTimeToStr(start_time)+"')+TimeValue('"+DateTimeToStr(start_time)+"')");却错了(检索结果为空),其中start_time为TDateTime的变量,帮我看看为啥呀?
----------------------------------------------
编译又有错,郁闷啊!! |
作者: |
|
2003/4/30 12:05:40 |
1楼: |
是delphi吗?是C++ Bluider吧
----------------------------------------------
链接:https://pan.baidu.com/s/12jzmECYKhGCsHBxz8tmB6w 提取码:pelr --来自百度网盘超级会员V9的分享
|
作者: |
gasyu (gasyu) |
★☆☆☆☆ |
-
|
普通会员 |
|
2003/4/30 15:57:30 |
2楼: |
1楼的是C++ Builder呀! 你知道为何检索结果为空吗?
----------------------------------------------
编译又有错,郁闷啊!!
|
|