在服务器数据集中写if函数报错

oracle 数据库,在数据集中写if语句做分条件查询,一直报错,求帮助。贴代码:${if("select count(*) from TMP_Materialprice where fpricelot='"+价格编号+"'")>0),"SELECT a.fitemno,b.fitemln,a.fprice FROM TMP_Materialprice a,itemm b where a.fitemno=b.fitemno  and a.fpricelot='"+价格编号+"'","select fitemno,fitemln,0 as fprice from itemm  where fitemtyp=''P'' order by fitemno ")}  或者还有什么好的办法。oracle数据库中。

FineReportjamin_FineRep 发布于 2016-12-23 17:03
回答问题
悬赏:2 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共10回答
最佳回答
0
星痕发布于2016-12-23 17:09(编辑于 2023-9-6 09:34)
555
最佳回答
0
gqmao发布于2016-12-23 17:10(编辑于 2023-9-6 09:34)
555
最佳回答
0
jamin_FineRep发布于2016-12-23 17:10(编辑于 2023-9-6 09:34)
555
最佳回答
0
星痕发布于2016-12-23 17:15(编辑于 2023-9-6 09:34)
555
  • jamin_FineRep jamin_FineRep(提问者)

    在数据集中执行sql函数报错呢。显示sql附近有语法错误呢
    回复
    2016-12-23 17:29 
最佳回答
0
jamin_FineRep发布于2016-12-23 17:29(编辑于 2023-9-6 09:34)
555
最佳回答
0
376333837发布于2016-12-23 17:41(编辑于 2023-9-6 09:34)
555
最佳回答
0
jamin_FineRep发布于2016-12-23 17:48(编辑于 2023-9-6 09:34)
555
最佳回答
0
zsh331发布于2016-12-23 17:57(编辑于 2023-9-6 09:34)
555
  • jamin_FineRep jamin_FineRep(提问者)

    语法我知道的,但是在数据集中写入sql(\"数据源\",\"sql语句\",1,1)提示语法错误,是不是在数据集中不支持sql函数?
    回复
    2016-12-24 07:48 
最佳回答
0
jamin_FineRep发布于2016-12-24 07:48(编辑于 2023-9-6 09:34)
555
最佳回答
0
zsh331发布于2016-12-24 07:58(编辑于 2023-9-6 09:34)
555
  • 0关注人数
  • 618浏览人数
  • 最后回答于:2016-12-24 07:58
    活动推荐 更多
    热门课程 更多
    返回顶部