35. oracle中instr在平台上的转换用法

//INSTR('15,17,29,3,30,4',a.femployee)
var instrSql = fun.funHelper.charIndex('a.femployee',"'"+V_1+"'");
LB_sqlExecute("delete from T_HR_TrainFile a where a.ftraincourse = ? and "+instrSql+" >0 ",[courseName]);

备注:delete from T_HR_TrainFile a where a.ftraincourse = ? and INSTR('15,17,29,3,30,4',a.femployee) >0 

var fun = ABS_LOADBEAN("com.plug.FunctionHelper");
var Aid= fun.funHelper.strAdd("a.ID","';'");
var Bid= fun.funHelper.strAdd("b.ID","';'");
var AFOrg= fun.funHelper.strAdd("a.FOrg","';'");
var Smain= fun.funHelper.charIndex(Aid,"'"+O_MASTER.FMainSend+";'");
var Scopy = fun.funHelper.charIndex(Aid,"'"+O_MASTER.FCopySend+";'");
var Uorg= fun.funHelper.charIndex(Bid,AFOrg);
LB_sqlResultSet("select b.ID as forg from T_OA_DocUnit a ,lbOrganization b where "+Uorg+">0 and ( "+Smain+">0 or "+Scopy+">0 )");

原文地址:https://www.cnblogs.com/zkx4213/p/5541603.html