列名加反引号,防止关键字报错

master
chengqf 2 years ago
parent c58a077033
commit f9c8953255

@ -796,7 +796,8 @@ public class IdcServiceImpl implements IdcService {
private boolean analyToDB(String host, String tableName, String uniqueColumn, String
filePathColumn, List<Map<String, Object>> list, boolean isUpload) {
String tName = DBAUtils.tableRealName(tableName);
String tName = DBAUtils.tableRealName(tableName);
String sql = "replace " + tName + "(";
String del = "delete from " + tName + " where ";
String upd = "update " + tName + " set ";

Loading…
Cancel
Save