Chinaunix首页 | 论坛 | 博客
  • 博客访问: 410717
  • 博文数量: 112
  • 博客积分: 4000
  • 博客等级: 上校
  • 技术积分: 905
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-05 21:14
文章分类

全部博文(112)

文章存档

2009年(3)

2008年(24)

2007年(55)

2006年(30)

我的朋友

分类: Java

2007-01-04 17:17:54

 StringBuffer useinfo=new StringBuffer();
 Connection conn=lianjie.getConn();
 Statement stmt=conn.createStatement();
 ResultSet rs=stmt.executeQuery("select * from messagebook");
 
 try{
 while(rs.next()){
  useinfo.append("\n");
  useinfo.append(""+rs.getString("uid")+"");
  useinfo.append(""+rs.getString("name")+"");
  useinfo.append(""+rs.getString("ip")+"");
  useinfo.append(""+rs.getString("email")+"");
  useinfo.append(""+rs.getString("exactpost")+"");
  useinfo.append(""+rs.getString("content")+"");
  useinfo.append("");
 }
 }catch(Exception ex){
  System.out.println(ex);
 }
阅读(1089) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~