62,626
社区成员
发帖
与我相关
我的任务
分享
Connect conn=DriverManager.getConnection(url,user,password);
String sql = "select * from people p where p.id = ? and p.name = ?";
PreparedStatement pstmt =conn.PrepareStatement(sql);
pstmt.setint(1,id);
pstmt.setstring(2,name);
ResultSet rs = pstmt.executeQuery();