Skip to content

BatchScript

张弓 edited this page Feb 19, 2021 · 1 revision

批处理脚本取代工具, 使用范例:

BatchScript bs = new BatchScript(conn);
bs.add("update TableX set num=num+1 where productCode='%s'", productCode);
bs.addSemicolon();
bs.add("update tableY set num=num+1 where productCode='%s'", productCode);
bs.exec();