1、如何指定查询结果集中各个字段的名称,已解决oracle返回的结果集中字段大写,而mysql返回的结果集中字段名称为sql预计中写的名称(sql语句未指定时,为数据库中定义的名称)?
方案一:select id "id",name "name" from person
方案二:把结果转为大小写不敏感的map存储
Map<String, String> cateXml = cateXmls.get(i);
Map<String, String> tempMap=new LinkedCaseInsensitiveMap<String>();
tempMap.putAll(cateXml);
原文:http://www.cnblogs.com/lee-mj/p/6378460.html