resultset专题提供resultset的最新资讯内容,帮你更好的了解resultset。
一·、需求 写一个功能类,能将一个给定的sql select语句的执行结果集按照一定格式生成xml文件。 比如,一个sql语句"select * from star;"的执行结果是这样的: --------------------------- name age gender --------------------------- James 26 male Bryant 33 male 要求生成
http://jslyghj.iteye.com/blog/467784 http://blog.sina.com.cn/s/blog_700dec940100spox.html private String generateXML(final ResultSet rs) throws SQLException { final StringBuffer buffer = new Stri