Class.forName(driver);conn=DriverManager.getConnection(url,userName,passWord);Stringsql="select*fromt_demo_xswherexm=?";ps=conn.prepareStatement(sql);ps.setString(1,"liu");rs=ps.executeQuery();