|
最佳回答 |
1
|
axingLv6专家互助发布于2019-5-16 11:25
|
sql函数返回的是数组,要用joinarray将数组转换成字符串 ${if(fr_username = '003900'," ","and a3.VKBUR in (
'"+JOINARRAY(sql("server","select area a from xm_respon_area where work_code = '"+fr_username+"'",1),"','")+"'
)")}
|
|
|
|
最佳回答 |
0
|
圣体叶小凡Lv6高级互助发布于2019-5-16 11:05
|
|
|
|
|
最佳回答 |
0
|
firegunzxLv6高级互助发布于2019-5-16 11:07(编辑于 2019-5-16 11:08)
|
sql()函数一般是用在单元格里的 如果你是在数据sql里加判断的话,语法不对 例子: ${if(len(area) == 0,""," and [大区] like'%" + area + "%'")}
单元格sql()例子: if((len(C4) = 0), "", sql("数据源", "select name from 表 where ID='" + C4 + "'", 1, 1))
|
|
|
|
最佳回答 |
0
|
No1-格调Lv6初级互助发布于2019-5-16 11:08(编辑于 2019-5-16 11:19)
|
${if(fr_username = '003900'," ","and a3.VKBUR in (
"'"+sql("server","select area a from xm_respon_area where work_code = '"+fr_username+"'",1)+"'",1)")}
|
|
|
|
最佳回答 |
0
|
KevinGaoLv2初级互助发布于2019-5-16 11:10
|
你的SQL函数写错了吧,少了个参数
|
|
|