sql("DM","select BOXNUM from CT_PJLGD_BNUM where(1=1)" + if(len(pcj) = 0,""," AND INARRAY(FCJ,'" +$pcj+"') > 0"), 1)
判断CT_PJLGD_BNUM的字段是被包含于参数pcj里,被包含了则返回表对应记录行的值,为啥没有起作用呀
sql("DM","select BOXNUM from CT_PJLGD_BNUM where(1=1)" + if(len(pcj) = 0,""," AND INSTR('"+ $PCJ + "',FCJ) > 0") + "order by BOXNUM", 1)
什么数据库 ?有 INARRAY()函数