下拉复选框查询与sql的编写

数据字典中,select factoryfrom jiuye_ceshi
where find_in_set(factory,(
select REPLACE(Factory,'''','')
from jiuye_jurisdiction
where number='$fr_username'))
这个sql执行没问题。怎样把这个sql写到公式中去,
我拼接上去,没有值。
还有个小问题,如果不选,就查询全部,改怎样设置?


FineReportyinewstar 发布于 2017-12-20 10:17
悬赏:2 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共16回答
最佳回答
0
风起了发布于2017-12-20 10:17(编辑于 2023-9-6 09:34)
555
  • yinewstar yinewstar(提问者) 数据集中,已经查询出来的数据。提了需求,需要在面板中,能够查询指定的数据
    回复
    2017-12-20 10:34 
  • yinewstar yinewstar(提问者) 可以这样说,数据集中,已经筛选了一部分。展示在页面的数据还有好多,有时候,需要查询指定的
    回复
    2017-12-20 10:39 
最佳回答
0
星痕发布于2017-12-20 10:18(编辑于 2023-9-6 09:34)
555
最佳回答
0
w帆发布于2017-12-20 10:23(编辑于 2023-9-6 09:34)
555
最佳回答
0
zsh331发布于2017-12-20 10:24(编辑于 2023-9-6 09:34)
555
  • yinewstar yinewstar(提问者) 表中数据格式: A\',\'B\',\'C 把里面的单引号取掉,为:A,B,C
    回复
    2017-12-20 10:26 
  • yinewstar yinewstar(提问者) sql写的没问题。现在是想把sql写入到数据字典中
    回复
    2017-12-20 10:27 
最佳回答
0
zsh331发布于2017-12-20 10:28(编辑于 2023-9-6 09:34)
555
  • yinewstar yinewstar(提问者) 没有数据展示
    回复
    2017-12-20 10:34 
  • zsh331 zsh331 回复 yinewstar :你的数据源是定义的叫 MYSQL吗?
    回复
    2017-12-20 11:54 
最佳回答
0
风起了发布于2017-12-20 10:42(编辑于 2023-9-6 09:34)
555
最佳回答
0
axing发布于2017-12-20 10:45(编辑于 2023-9-6 09:34)
555
最佳回答
0
yinewstar发布于2017-12-20 10:51(编辑于 2023-9-6 09:34)
555
最佳回答
0
风起了发布于2017-12-20 10:59(编辑于 2023-9-6 09:34)
555
  • yinewstar yinewstar(提问者) 我放了。SQL(\"mysql\", \"select factory from jiuye_ceshi where find_in_set(factory,(select REPLACE(Factory,\'\'\'\',\'\') from jiuye_jurisdiction where number=\'\"+$fr_username+\"\'))\",1)。这样写进去,没有数据
    回复
    2017-12-20 11:01 
最佳回答
0
yinewstar发布于2017-12-20 10:59(编辑于 2023-9-6 09:34)
555
  • 0关注人数
  • 876浏览人数
  • 最后回答于:2017-12-20 13:59
    活动推荐 更多
    热门课程 更多
    返回顶部