81,092
社区成员
发帖
与我相关
我的任务
分享
<%
Connection =null;
Statement stmt=null;
ResultSet rs=null;
List list=new LinkedList();
try{
Class.forName("");//连接的数据库
con=DriverManager.getConnection("","","");//输入你的数据库连接,用户名,密码
stmt=con.createStatement();
String temp="";//需要操作的数据库语句
rs=stmt.executequery(temp);
while(rs.next()){
//遍历rs
}
}
%>