软件开发商业智能

FineReport使用SQL数据集参数

在SQL中查询加时间条件查询没有问题,SQL语句如下select convert(decimal(18,2),sum(expense)) as yhje from membersale where dt>='2015-05-09 07:37:00:396' and dt='${starttime}' and dt显示全部
在SQL中查询加时间条件查询没有问题,SQL语句如下
select convert(decimal(18,2),sum(expense)) as yhje from membersale where dt>='2015-05-09 07:37:00:396' and dt<='2015-05-10 07:37:00:396';
在finereport数据集中增加参数不是查不出数来,参数类型设置为日期型,设置如下图

select convert(decimal(18,2),sum(expense)) as yhje from membersale where dt>='${starttime}' and dt<='${endtime}'



收起
参与3

查看其它 1 个回答温暖冰焰的回答

温暖冰焰温暖冰焰数据库管理员交通设计
回复 1# 喝水不长肉

看你参数值是时间类型,用日期类型能展示吗
轨道交通 · 2015-08-14
浏览1347

回答者

温暖冰焰
数据库管理员交通设计

温暖冰焰 最近回答过的问题

回答状态

  • 发布时间:2015-08-14
  • 关注会员:1 人
  • 回答浏览:1347
  • X社区推广