读书人

请教access数据库中的date型字段在pb中

发布时间: 2012-03-09 21:42:54 作者: rapoo

请问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'"

读书人网 >PB

热点推荐