首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

请教access数据库中的date型字段在pb中怎么查询

2012-03-09 
请问access数据库中的date型字段在pb中如何查询?access中日期字段date_col查询格式为:select * from t whe

请问access数据库中的date型字段在pb中如何查询?
access中日期字段date_col查询格式为:
select * from t where date_col>=#2010-02#


pb中:
DWfilter="date_col>=2010-01#"
dw_1.SetFilter(DWfilter)
dw_1.Filter()

查询报错无效的表达式。

请问有用过access的朋友吗?

[解决办法]
试试这个
DWfilter="date_col>='2010-01-01'"
setfilter语法和数据库的查询语法无关,它在DW中自有一套
[解决办法]
DWfilter="string(date_col,'yyyy-mm-dd')>='2010-01-01'" 

热点排行