请教高手:java中 SQL查询结果返回为List<Map<String,Object>>结果集顺序问题

2025-01-04 12:35:04
推荐回答(1个)
回答1:

List> list=..

for (int i=0;i{
Map map=(Map)list.get(i);

Iterator iterator = map.keySet().iterator();
while (iterator.hasNext())
{
String key = (String) iterator.next();
Object object = map.get(key);
}

}