当前位置: 代码迷 >> PB >> filter的时间过滤有关问题
  详细解决方案

filter的时间过滤有关问题

热度:10   发布时间:2016-04-29 08:10:01.0
filter的时间过滤问题
ls_filter=ls_filter+" and to_Date(h.enddate,'yyyymmdd h24:mi:ss')>=to_date(sysdate,'yyyymmdd h24:mi:ss')"

运行的时候提示:
')'expected to close expression after function

但是好像不缺右括号啊

------解决方案--------------------
ls_filter=ls_filter+" and string(h.enddate,'yyyymmdd h24:mi:ss')>=string(sysdate,'yyyymmdd h24:mi:ss')"


用setfilter过滤时间我一般都是这样过滤的: 
ls_filter = "string(h.enddate,'yyyymmdd h24:mi:ss') >= '"+string(sysdate,'yyyymmdd h24:mi:ss')+"'"
dw_1.setfilter(ls_filter)
dw_1.filter()
  相关解决方案