1.直接执行update语句
private static BaseDAO bd = null;
private static BaseDAO getBasedao(){undefined
if(bd == null){undefined
bd = new BaseDAO();
}
return bd;
}
getBasedao().executeUpdate(
"UPDATE fhjy_listmaintainb SET kpsqhx =‘N’ WHERE nvl(dr,0)=0 and "
2.SQL语句中添加 in的语句
import nc.ui.bd.ref.RefPubUtil;
RefPubUtil.getInSubSql(“Pk_sample”,codeList.toArray(new String[0]))+ " and nvl(dr,0) = 0 ");
3.查询一个值(两个值)的方法
import nc.jdbc.framework.processor.ColumnProcessor;
dept = getString(iq.executeQuery(sql, new ColumnProcessor()),null);
ArrayList result = (ArrayList) iq.executeQuery(sql, new BeanListProcessor(TaskVO.class));
4.查询多个值的方法
import nc.jdbc.framework.processor.ArrayListProcessor;
public Object[] queryMateiralMes(String pk_material) throws BusinessException {undefined
String s