jsp页面中,条件查询要怎么做

日期:2017-12-27 07:47:04 人气:1

jsp页面中,条件查询要怎么做

示例: JSP 页面中: 后台 :String sql = "select * from user where username =?";//从用户表中查询指定用户名的数据 取得文本框中的值:String name = requset.getParameter("username"); 然后取得connection对象 conn Preparestatement pstmt = conn.preparestatement(); pstmt
    A+
热门评论