可以下列写法吗

var hb,tb=FR.remoteEvaluate('=sql("JDBC8","SELECT yzehb,yzetb from dbo.tu_klb where year=\''+ points[i].seriesName +'\' and month= \''+this.category+'\'",1)');

FineReport yzm209396 发布于 2024-11-27 10:50
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
华莉星宸Lv7资深互助
发布于2024-11-27 10:51

分开写

var hb=FR.remoteEvaluate('=sql("JDBC8","SELECT yzehb,yzetb from dbo.tu_klb where year=\''+ points[i].seriesName +'\' and month= \''+this.category+'\'",1)');

var tb=FR.remoteEvaluate('=sql("JDBC8","SELECT yzehb,yzetb from dbo.tu_klb where year=\''+ points[i].seriesName +'\' and month= \''+this.category+'\'",2)');

  • yzm209396 yzm209396(提问者) var hb=FR.remoteEvaluate('=sql("JDBC8","SELECT yzehb from dbo.tu_klb where year=\''+ points[i].seriesName +'\' and month= \''+this.category+'\'",1)'); var tb=FR.remoteEvaluate('=sql("JDBC8","SELECT yzetb from dbo.tu_klb where year=\''+ points[i].seriesName +'\' and month= \''+this.category+'\'",1)');这样啊
    2024-11-27 10:56 
  • yzm209396 yzm209396(提问者) 不能写在一起吗 简单
    2024-11-27 10:56 
  • 华莉星宸 华莉星宸 回复 yzm209396(提问者) 不能写在一起啊。你这是单个取。
    2024-11-27 10:59 
  • 2关注人数
  • 55浏览人数
  • 最后回答于:2024-11-27 10:51
    请选择关闭问题的原因
    确定 取消
    返回顶部