当sql语句为select xx as YY ,xx1 as yy1 ,xx2 as yy2……时rs.getString("???");试过通过:rs.getMetaData().getColumnCount();循环还是有问题