当前位置: 代码迷 >> PB >> 请教access数据库中的date型字段在pb中怎么查询
  详细解决方案

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

热度:39   发布时间:2016-04-29 09:04:37.0
请问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'" 
  相关解决方案