javaWeb-连接mysql数据库增删改查(精)

更新时间:2024-04-03 19:41:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

连接MYSQL数据库的简单增删改查

项目框架如图所示:

所需工具:

所需工具:

所需工具:

所需工具:

程序代码:package com.user.action; import java.io.IOException;

import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.user.bean.UserBean; import com.user.dao.UserDao;

public class InsertOrUpdateAction extends HttpServlet {

/** * */

private static final long serialVersionUID = 1L; private UserDao userDao ;

public void doGet(HttpServletRequest request, HttpServletResponse response throws ServletException, IOException {

doPost(request, response; }

public void doPost(HttpServletRequest request, HttpServletResponse response throws ServletException, IOException {

request.setCharacterEncoding(\; response.setCharacterEncoding(\;

userDao = new UserDao(; String str = request.getRequestURI(; str = str.substring(str.lastIndexOf(\+1; String yx = request.getParameter(\; String zy = request.getParameter(\; String age = request.getParameter(\; String dh = request.getParameter(\;

String qq = request.getParameter(\; String sex = request.getParameter(\; UserBean userBean = new UserBean(; userBean.setYx(yx; userBean.setZy(zy; if(!\.equals(age&&age!=null {

userBean.setAge(Integer.valueOf(age; }else{

userBean.setAge(0; }

userBean.setDh(dh; userBean.setQq(qq; userBean.setSex(sex; if(\.equals(str{ if(userDao.insertUser(userBean{ response.sendRedirect(\; }else{

response.sendRedirect(\; }

}else if(\.equals(str{ String strId = request.getParameter(\; if(!\.equals(strId&&strId!=null{ userBean.setId(Integer.valueOf(strId; }else{

userBean.setId(-1; }

if(userDao.updateUser(userBean{ response.sendRedirect(\; }else{

response.sendRedirect(\; } } } }

package com.user.action; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class LoginAction extends HttpServlet { /** * */

private static final long serialVersionUID = 1L;

public void doGet(HttpServletRequest request, HttpServletResponse response throws ServletException, IOException { doPost(request, response; }

public void doPost(HttpServletRequest request, HttpServletResponse response throws ServletException, IOException { String name= request.getParameter(\; String password = request.getParameter(\;

if(\.equals(name||\.equals(password {

response.sendRedirect(\; }else{

if(\.equals(name&&\.equals(password {

response.sendRedirect(\; }else{

response.sendRedirect(\; } } } }

package com.user.action; import java.io.IOException; import java.util.List;

import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.user.bean.UserBean; import com.user.dao.UserDao;

public class UserAction extends HttpServlet { /** * */

private static final long serialVersionUID = 1L; private UserDao userDao ;

public void doGet(HttpServletRequest request, HttpServletResponse response throws ServletException, IOException { doPost(request, response; }

public void doPost(HttpServletRequest request, HttpServletResponse response throws ServletException, IOException { request.setCharacterEncoding(\response.setCharacterEncoding(%userDao = new UserDao(;

String str = request.getRequestURI(; str = str.substring(str.lastIndexOf(\if(\{

List list = userDao.getAllUser(; request.setAttribute(\

request.getRequestDispatcher(\}else if(\{

String strId = request.getParameter(\int id = Integer.valueOf(strId;

UserBean userBean = userDao.selectUserById(id; request.setAttribute(\

request.getRequestDispatcher(\

}else if(\

String strId = request.getParameter(\int id = Integer.valueOf(strId; if(userDao.deleteUser(id{

response.sendRedirect(\}else{

response.sendRedirect(\} } } }

package com.user.dao; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List;

import com.user.bean.UserBean; import com.util.DBUtils; public class UserDao { private DBUtils dbUtil; /**

* 查询所有的user * @return */

public List getAllUser( {

dbUtil = new DBUtils(; List list = new ArrayList (; String sql = \ResultSet rs = dbUtil.exceteSQl(sql;

try { while(rs.next( { int i =1;

UserBean userBean = new UserBean(; userBean.setId(rs.getInt(i++; userBean.setName(rs.getString(i++; userBean.setYx(rs.getString(i++; userBean.setZy(rs.getString(i++; userBean.setAge(rs.getInt(i++; userBean.setDh(rs.getString(i++; userBean.setQq(rs.getString(i++; userBean.setSex(rs.getString(i++; list.add(userBean; }

} catch (SQLException e { e.printStackTrace(; }finally{ dbUtil.close(; } return list; } /**

* 根据id查询user * @param id * @return */

public UserBean selectUserById(int id{ dbUtil = new DBUtils(;

UserBean userBean = new UserBean(;

String sql = \ResultSet rs = dbUtil.exceteSQl(sql; try { if(rs.next( { int i =1;

userBean.setId(rs.getInt(i++; userBean.setYx(rs.getString(i++; userBean.setZy(rs.getString(i++; userBean.setAge(rs.getInt(i++; userBean.setDh(rs.getString(i++; userBean.setQq(rs.getString(i++; userBean.setSex(rs.getString(i++; }

} catch (SQLException e { e.printStackTrace(; }

return userBean; } /** * 插入用户 * @param userBean * @return */

public boolean insertUser(UserBean userBean{ dbUtil = new DBUtils(;

String sql = \

int row = dbUtil.excete(sql, new

Object[]{userBean.getYx(,userBean.getZy(,userBean.getAge(,userBean.getDh(,userBean.getQq(,userBean.getSex(}; if(row>0{

return true; }

return false; } /** * 删除用户 * @param id * @return */

public boolean deleteUser(int id{ dbUtil = new DBUtils(;

String sql = \int row = dbUtil.excete(sql; if(row>0 {

return true; }

return false; } /** * 修改user * @param userBean * @return */

public boolean updateUser(UserBean userBean{ dbUtil = new DBUtils(;

String sql = \

int row = dbUtil.excete(sql, new

Object[]{userBean.getYx(,userBean.getZy(,userBean.getAge(,userBean.getDh(,userBean.getQq(,userBean.getSex(,userBean.getId(}; if(row>0

{

return true; }

return false; } }

package com.user.bean; public class UserBean { private int id;

private String name;//电话 private String yx;//院系 private String zy;//专业 private int age;//年龄 private String dh; private String qq; private String sex; public int getId( { return id;

}

public void setId(int id { this.id = id;

}

public String getName( { return name;

}

public void setName(String name { this.name = name;

}

public String getYx( { return yx;

}

public void setYx(String yx { this.yx = yx;

}

public String getZy( { return zy;

}

public void setZy(String zy { this.zy = zy;

}

public int getAge( { return age;

}

public void setAge(int age { this.age = age;

}

public String getDh( { return dh;

}

public void setDh(String dh { this.dh = dh;

}

public String getQq( { return qq;

}

public void setQq(String qq { this.qq = qq;

}

public String getSex( { return sex; }

public void setSex(String sex { this.sex = sex; } }

package com.user.dao; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List;

import com.user.bean.UserBean; import com.util.DBUtils; public class UserDao { private DBUtils dbUtil; /**

* 查询所有的user * @return */

public List getAllUser( {

dbUtil = new DBUtils(;

List list = new ArrayList (; String sql = \ResultSet rs = dbUtil.exceteSQl(sql; try { while(rs.next( { int i =1;

UserBean userBean = new UserBean(; userBean.setId(rs.getInt(i++; userBean.setName(rs.getString(i++; userBean.setYx(rs.getString(i++; userBean.setZy(rs.getString(i++; userBean.setAge(rs.getInt(i++; userBean.setDh(rs.getString(i++; userBean.setQq(rs.getString(i++; userBean.setSex(rs.getString(i++; list.add(userBean; }

} catch (SQLException e { e.printStackTrace(; }finally{ dbUtil.close(; } return list; }

/**

* 根据id查询user * @param id * @return */

public UserBean selectUserById(int id{ dbUtil = new DBUtils(;

UserBean userBean = new UserBean(;

String sql = \ResultSet rs = dbUtil.exceteSQl(sql; try { if(rs.next( { int i =1;

userBean.setId(rs.getInt(i++; userBean.setYx(rs.getString(i++; userBean.setZy(rs.getString(i++; userBean.setAge(rs.getInt(i++; userBean.setDh(rs.getString(i++; userBean.setQq(rs.getString(i++; userBean.setSex(rs.getString(i++; }

} catch (SQLException e { e.printStackTrace(; }

return userBean; } /** * 插入用户 * @param userBean * @return */

public boolean insertUser(UserBean userBean{ dbUtil = new DBUtils(;

String sql = \

int row = dbUtil.excete(sql, new

Object[]{userBean.getYx(,userBean.getZy(,userBean.getAge(,userBean.getDh(,userBean.getQq(,userBean.getSex(}; if(row>0{ return true; }

return false; } /** * 删除用户 * @param id * @return */

public boolean deleteUser(int id{ dbUtil = new DBUtils(;

String sql = \

int row = dbUtil.excete(sql; if(row>0 { return true; }

return false; } /** * 修改user * @param userBean * @return */

public boolean updateUser(UserBean userBean{ dbUtil = new DBUtils(;

String sql = \int row = dbUtil.excete(sql, new

Object[]{userBean.getYx(,userBean.getZy(,userBean.getAge(,userBean.getDh(,userBean.getQq(,userBean.getSex(,userBean.getId(}; if(row>0 { return true; }

return false; } }

package com.util;

import java.sql.Date;

import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import com.mysql.jdbc.Connection; import com.mysql.jdbc.Statement; public class DBUtils {

private static Connection conn=null; private Statement st=null; private ResultSet rs = null; private PreparedStatement ps; static{ try {

Class.forName(\

conn = (Connection

DriverManager.getConnection(\acterEncoding=UTF-8\} catch (ClassNotFoundException e { e.printStackTrace(; } catch (SQLException e { e.printStackTrace(; } } /** *

* @Title: exceteSQl

* @Description: TODO(执行不带参数的sql语句 * @param sql * @return ResultSet * @throws */

public ResultSet exceteSQl(String sql { try {

st =(Statement conn.createStatement(; rs = st.executeQuery(sql; } catch (SQLException e { e.printStackTrace(; } return rs; } /** *

* @Title: exceteSQl

* @Description: TODO(执行带参数的sql语句 * @param sql * @param obj * @return ResultSet * @throws */

public ResultSet exceteSQl(String sql, Object[] obj {

int length = obj.length; try {

ps = conn.prepareStatement(sql; preparStateSql(obj, length; rs = ps.executeQuery(; } catch (SQLException e { e.printStackTrace(; } return rs; } /** *

* @Title: excete

* @Description: TODO(此方法适用于不带参数的修改,删除,增加 * @param sql * @return int * @throws */

public int excete(String sql{ int row =0; try {

st = (Statement conn.createStatement(; row = st.executeUpdate(sql;

} catch (SQLException e { e.printStackTrace(; }finally{ close(; } return row; } /** *

* @Title: excete

* @Description: TODO(此方法适用带参数的修改,删除,增加 * @param sql * @param obj * @return int * @throws */

public int excete(String sql, Object[] obj { int row =0;

int length = obj.length; try {

ps = conn.prepareStatement(sql; preparStateSql(obj, length; row = ps.executeUpdate(; } catch (SQLException e {

e.printStackTrace(; }finally{ close(; } return row; } /** *

* @Title: preparStateSql

* @Description: TODO(参数赋值 * @param obj * @param length

* @throws SQLException void * @throws */

private void preparStateSql(Object[] obj, int length throws SQLException { for(int i=0;i {

if(obj[i].getClass(==String.class {

ps.setString(i+1, obj[i].toString(; }else if(obj[i].getClass(==Integer.class {

ps.setInt(i+1, (Integerobj[i];

}else if(obj[i].getClass(==Double.class

{

ps.setDouble(i+1, (Doubleobj[i];

}else if(obj[i].getClass(==Date.class//java.sql.Date {

ps.setDate(i+1, (Dateobj[i];

} } } /** *

* @Title: close

* @Description: TODO(数据库连接关闭 void * @throws */

public void close( { if(rs!=null { try { rs.close(;

} catch (SQLException e { e.printStackTrace(; } } if(st!=null { try { st.close(;

} catch (SQLException e {

e.printStackTrace(; } } if(ps!=null { try { ps.close(;

} catch (SQLException e { e.printStackTrace(; } } }

public static void main(String[] args { DBUtils db = new DBUtils(; String sql = \ResultSet rr = db.exceteSQl(sql; try { while(rr.next( { int i =1;

System.out.print(rr.getInt(i+++\System.out.print(rr.getString(i+++\System.out.print(rr.getString(i+++\System.out.print(rr.getInt(i+++\System.out.print(rr.getString(i+++\System.out.print(rr.getString(i+++\System.out.println(rr.getString(i++; }

} catch (SQLException e {

// TODO Auto-generated catch block

e.printStackTrace(; }finally{ db.close(; }

//String sql = \软件\\\测试\\\女\\\

/* String sql = \

int row = db.excete(sql, new Object[]{\软件\测试\女\//int row = db.excete(sql; if(row>0 {

System.out.println(\增加成功\}*/

/*String sql = \int row = db.excete(sql, new Object[]{\计通\if(row>0 {

System.out.println(\修改成功\}*/ } }

所需要的驱动包:

Web.xml配置:

xml version=\ encoding=\?>

xmlns=\

xmlns:xsi=\

xsi:schemaLocation=\ http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd\> display-name>

UserAction servlet-name>

com.user.action.UserAction servlet-class> servlet>

InsertOrUpdateAction servlet-name>

com.user.action.InsertOrUpdateAction servlet-class> servlet>

LoginAction servlet-name>

com.user.action.LoginAction servlet-class> servlet>

UserAction servlet-name> /SelectAllUser url-pattern> /SelectOneUser url-pattern> /DeleteUserById url-pattern> servlet-mapping>

InsertOrUpdateAction servlet-name> /InsertUserAction url-pattern> /UpdateUserAction url-pattern> servlet-mapping>

LoginAction servlet-name> /LoginAction url-pattern> servlet-mapping>

index.jsp welcome-file> welcome-file-list> web-app> Jsp:

<%@ page language=\ import=\ pageEncoding=\%> <%

String path = request.getContextPath(;

String basePath = request.getScheme(+\+request.getServerName(+\+request.getServerPort(+path+\; %>

DOCTYPE HTML PUBLIC \

\>

My JSP 'index.jsp' starting page title> <meta http-equiv=\ content=\> <meta http-equiv=\ content=\> <meta http-equiv=\ content=\> </p><p><meta http-equiv=\ content=\> <meta http-equiv=\ content=\> <style type=\> .table1{ margin:0 auto; </p><p>border-collapse: collapse; } .table1 td{ padding: 0px; height:25px; </p><p>border:1px solid #6AB6B6; text-align:center; </p><p> </p><p> </p><p>font-family:\微软雅黑\; font-size:12px; </p><p>background-color:#EAFEFE; } </p><p>.table1 td.title{ height:28px; color:#fff; </p><p>background-color:#6AB6B6; font-weight:bold; font-size:20px; text-align: center; } </p><p>.table1 tr.colname{ font-size: 14px; font-weight: bold; } </p><p>* .nobd_table td{ border: none; } style> head> <body> </p><p> <form action=\ method=\ > </p><p>欢迎你的登录! td> tr> 帐号 td> </p><p> </p><p> </p><p> <input type=\ name=\ > td> tr> 密码 td> </p><p> <input type=\ name=\ > td> tr> </p><p> <input type=\ value=\登录\ > <input type=\ value=\重置\ > td> tr> table> form> div> body> html> </p><p><%@ page language=\ import=\ pageEncoding=\%> <%@ taglib prefix=\ uri=\ %> <% </p><p>String path = request.getContextPath(; </p><p>String basePath = request.getScheme(+\+request.getServerName(+\+request.getServerPort(+path+\; %> </p><p>DOCTYPE HTML PUBLIC \ <html> <head> </p><p><base href=\<%=basePath%>\> </p><p><title>My JSP 'userList.jsp' starting page title> <meta http-equiv=\ content=\> <meta http-equiv=\ content=\> <meta http-equiv=\ content=\> </p><p><meta http-equiv=\ content=\> <meta http-equiv=\ content=\> </p><p> </p><p> </p><p><style type=\> .table1{ margin:0 auto; </p><p>border-collapse: collapse; } .table1 td{ padding: 0px; height:25px; </p><p>border:1px solid #6AB6B6; text-align:center; font-family:\微软雅黑\; font-size:12px; </p><p>background-color:#EAFEFE; } </p><p>.table1 td.title{ height:28px; color:#fff; </p><p>background-color:#6AB6B6; font-weight:bold; font-size:20px; text-align: center; } </p><p>.table1 tr.colname{ font-size: 14px; font-weight: bold; } </p><p>* .nobd_table td{ border: none; } style> </p><p> </p><p></p><p> </p><p><script type=\> function goback( { } script> head> <body> </p><p> <form action=\ method=\ > </p><p>user信息填写 td> tr> 院系 td> </p><p> <input type=\ name=\ id=\ value=\${userBean.yx }\ ><input type=\ name=\ value=\${userBean.id }\ > td> tr> 专业 td> </p><p> <input type=\ name=\ id=\ value=\${userBean.zy }\ > td> tr> 年龄 td> </p><p><input type=\ name=\ id=\ value=\${userBean.age }\ > td> tr> 电话 td> </p><p> <input type=\ name=\ id=\ value=\${userBean.dh }\ > td> tr> </p><p> </p><p> </p><p> QQ td> </p><p> <input type=\ name=\ id=\ value=\${userBean.qq }\ > td> tr> 行别 td> </p><p><c:set value=\男\ var=\ > c:set> <c:if test=\${userBean.sex eq sexs }\> </p><p><input type=\ name=\ value=\男\ checked=\ >男<input type=\ name=\ value=\女\>女 c:if> </p><p><c:if test=\${userBean.sex ne sexs }\> </p><p><input type=\ name=\ value=\男\ >男<input type=\ checked=\ name=\ value=\女\>女 c:if> td> tr> </p><p> <input type=\ value=\提交\ > <input type=\ value=\重置\ > <input type=\ value=\返回\ onclick=\ > td> tr> table> form> div> body> html> </p><p><%@ page language=\ import=\ pageEncoding=\%> <%@ taglib prefix=\ uri=\ %> <% </p><p>String path = request.getContextPath(; </p><p>String basePath = request.getScheme(+\+request.getServerName(+\+request.getServerPort(+path+\; %> </p><p> </p><p> </p><p>DOCTYPE HTML PUBLIC \ <html> <head> </p><p><base href=\<%=basePath%>\> </p><p><title>My JSP 'userList.jsp' starting page title> <meta http-equiv=\ content=\> <meta http-equiv=\ content=\> <meta http-equiv=\ content=\> </p><p><meta http-equiv=\ content=\> <meta http-equiv=\ content=\> <style type=\> .table1{ margin:0 auto; </p><p>border-collapse: collapse; } .table1 td{ padding: 0px; height:25px; </p><p>border:1px solid #6AB6B6; text-align:center; font-family:\微软雅黑\; font-size:12px; </p><p>background-color:#EAFEFE; } </p><p>.table1 td.title{ height:28px; color:#fff; </p><p>background-color:#6AB6B6; font-weight:bold; font-size:20px; </p><p> </p><p> </p><p>text-align: center; } </p><p>.table1 tr.colname{ font-size: 14px; font-weight: bold; } </p><p>* .nobd_table td{ border: none; } style> </p><p><script type=\> </p><p>function viewList({ </p><p>document.getElementById('list'.style.display= ''; document.getElementById('add'.style.display= 'none'; } </p><p>function viewAdd({ </p><p>document.getElementById('list'.style.display= 'none'; document.getElementById('add'.style.display= ''; } script> </p><p>head</p><p>> </p><p><body onload=\ > </p><p> </p><p> </p><p> </p><p>user表列表信息 <input type=\ value=\增加\ onclick=\ > td> </p><p>tr</p><p>> </p><p> </p><p>序号 td> 姓名 td> 院系 td> 专业 td> 年龄 td> 电话 td> QQ td> 性别 td> 操作 td> </p><p>tr</p><p>> </p><p><c:forEach var=\ items=\${UserList }\> </p><p>${bean.id } td> ${bean.name } td> </p><p> </p><p></p><p> </p><p>${bean.yx } td> </p><p>${bean.zy } td> ${bean.age } td> ${bean.dh } td> ${bean.qq } td> ${bean.sex } td> </p><p> 修改 a> 删除 a> td> tr> c:forEach> table> div> </p><p><p>30px;\id = \ > </p><p><form action=\ method=\ > </p><p>user信息填写 td> tr> 院系 td> </p><p> <input type=\ name=\ id=\> td> tr> 姓名 td> </p><p> </p><p> </p><p> <input type=\ name=\ id=\> td> tr> 专业 td> </p><p> <input type=\ name=\ id=\> td> tr> 年龄 td> </p><p><input type=\ name=\ id=\> td> tr> 电话 td> </p><p> <input type=\ name=\ id=\> td> tr> QQ td> </p><p> <input type=\ name=\ id=\> td> tr> 行别 td> </p><p><input type=\ name=\ value=\男\ checked=\ >男<input type=\ name=\ value=\女\>女 td> tr> </p><p> <input type=\ value=\提交\ > <input type=\ value=\重置\ > type=\ value=\返回\ onclick=\ > td> tr> table> form> </p><p> </p><p><input </p><p>div> body> html> </p><p>需要图形化操作数据库工具:导出的表格user.sql </p><p>/* </p><p>Navicat MySQL Data Transfer Source Host : localhost:3306 Source Database : test Target Host : localhost:3306 Target Database : test Date: 2013-11-02 09:34:58 */ </p><p>SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for user -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( </p><p>`id` int(11 NOT NULL AUTO_INCREMENT, `yx` varchar(20 DEFAULT NULL, `zy` varchar(20 DEFAULT NULL, `age` int(11 DEFAULT NULL, </p><p> </p><p> </p><p> </p><p>`dh` varchar(12 DEFAULT NULL, `qq` varchar(10 DEFAULT NULL, `sex` varchar(2 DEFAULT NULL, PRIMARY KEY (`id` </p><p>ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of user -- ---------------------------- </p><p>INSERT INTO `user` VALUES ('1', '计通', '3G', '20', '18037178577', '973171702', '男'; INSERT INTO `user` VALUES ('3', '计通', '测试', '12', '110', '123456789', '女'; INSERT INTO `user` VALUES ('4', '软件', '测试', '12', '110', '123456789', '女'; INSERT INTO `user` VALUES ('5', '软件', '测试', '12', '110', '123456789', '女'; INSERT INTO `user` VALUES ('8', '计通', '软件', '23', '232323', '45454', '男'; 运行图示: 登陆界面: </p><p> </p><p>进入界面: </p><p> </p><p>增加界面 </p><p> </p><p> </p><p> </p><p>修改界面: </p><p> </p><p>时间仓促 可能细节上 没有过多追求 还请勿喷粪….. </p><p> </p><p></p> <p>本文来源:<a href="https://www.bwwdw.com/article/ia2r.html">https://www.bwwdw.com/article/ia2r.html</a></p><span class="doc-download-e"></span> </div> <script type="text/javascript">s("download_bottom");</script> <div class="related_article"> <div class="related_top"><code>相关文章:</code></div> <ul><li><a href="https://www.bwwdw.com/article/ia2r.html" target="_blank" title="javaWeb-连接mysql数据库增删改查(精)">javaWeb-连接mysql数据库增删改查(精)</a></li><li><a href="https://www.bwwdw.com/article/29a1.html" target="_blank" title="Java连接数据库增删改查">Java连接数据库增删改查</a></li><li><a href="https://www.bwwdw.com/article/inqh.html" target="_blank" title="数据库增删改查">数据库增删改查</a></li><li><a href="https://www.bwwdw.com/article/jt66.html" target="_blank" title="JAVAswing界面实现数据库增删改查(精)">JAVAswing界面实现数据库增删改查(精)</a></li><li><a href="https://www.bwwdw.com/article/5pp6.html" target="_blank" title="oracle数据库增删改查练习50例-答案(精)">oracle数据库增删改查练习50例-答案(精)</a></li><li><a href="https://www.bwwdw.com/article/tk03.html" target="_blank" title="oracle数据库增删改查练习50例-答案(精)">oracle数据库增删改查练习50例-答案(精)</a></li><li><a href="https://www.bwwdw.com/article/qudv.html" target="_blank" title="数据库入门培训教程 Mysql学习笔记(三)对表数据的增删改查">数据库入门培训教程 Mysql学习笔记(三)对表数据的增删改查</a></li><li><a href="https://www.bwwdw.com/article/s9sm.html" target="_blank" title="sql完整数据库操作、存储过程、登录判断,增删改查">sql完整数据库操作、存储过程、登录判断,增删改查</a></li><li><a href="https://www.bwwdw.com/article/03jm.html" target="_blank" title="Java连接mysql数据库源代码">Java连接mysql数据库源代码</a></li><li><a href="https://www.bwwdw.com/article/piyi.html" target="_blank" title="Java连接mysql数据库源代码">Java连接mysql数据库源代码</a></li></ul> </div> <div class="in_reading"><p class="rel_art_line">正在阅读:</p><p><a target="_blank" href="https://www.bwwdw.com/article/ia2r.html" title="javaWeb-连接mysql数据库增删改查(精)">javaWeb-连接mysql数据库增删改查(精)</a><span>04-03</span></p><p><a target="_blank" href="https://www.bwwdw.com/article/jjgb.html" title="高中英语学习方法和技巧">高中英语学习方法和技巧</a><span>02-21</span></p><p><a target="_blank" href="https://www.bwwdw.com/article/8pka.html" title="linux 安装openkm6.3">linux 安装openkm6.3</a><span>02-26</span></p><p><a target="_blank" href="https://www.bwwdw.com/article/ri1w.html" title="五年级奥数练习题一">五年级奥数练习题一</a><span>01-30</span></p><p><a target="_blank" href="https://www.bwwdw.com/article/5kil.html" title="员工个人安全生产演讲稿精选范文">员工个人安全生产演讲稿精选范文</a><span>04-04</span></p><p><a target="_blank" href="https://www.bwwdw.com/article/eosa.html" title="2019年“两会”心得">2019年“两会”心得</a><span>02-25</span></p><p><a target="_blank" href="https://www.bwwdw.com/article/x3e5.html" title="2018年高二文科学业水平测试 物理试题(含答案)">2018年高二文科学业水平测试 物理试题(含答案)</a><span>12-13</span></p><p><a target="_blank" href="https://www.bwwdw.com/article/iw71.html" title="湖北省八校2014届高三英语第二次联考试题牛津译林版">湖北省八校2014届高三英语第二次联考试题牛津译林版</a><span>07-19</span></p><p><a target="_blank" href="https://www.bwwdw.com/article/uvod.html" title="窦桂梅丑小鸭教学设计">窦桂梅丑小鸭教学设计</a><span>10-03</span></p><p><a target="_blank" href="https://www.bwwdw.com/article/apth.html" title="合唱《我和我的祖国》教案">合唱《我和我的祖国》教案</a><span>09-16</span></p></div> <div class="previous"> <span class="pre">上一篇:<a title="关于巩固和提高党组织领导核心地位的调研报告" href="https://www.bwwdw.com/article/ha2r.html">关于巩固和提高党组织领导核心地位的调研报告</a></span> <span class="next">下一篇:<a title="项目管理概论-习题集(2015.2.28)答案" href="https://www.bwwdw.com/article/ja2r.html">项目管理概论-习题集(2015.2.28)答案</a></span> </div> </div> </div> <div class="right-side"> <div class="right_fix"> <script type="text/javascript">s("right_top");</script> <div class="hotSearch"><div class="hotSearch_tl"><span></span>相关文章</div><ul><li><span>1</span><a href="https://www.bwwdw.com/article/qy2q.html" title="Java连接mysql数据库源代码" target="_blank">Java连接mysql数据库源代码</a></li><li><span>2</span><a href="https://www.bwwdw.com/article/8yli.html" title="TinyWebDB的增删查改——APPINVENTOR网络微数据库教程" target="_blank">TinyWebDB的增删查改——APPINVENTOR网络微数据库教程</a></li><li><span>3</span><a href="https://www.bwwdw.com/article/clx8.html" title="sql server+jsp增删改查" target="_blank">sql server+jsp增删改查</a></li><li><span>4</span><a href="https://www.bwwdw.com/article/4ovg.html" title="Java中连接MySql数据库的几种方法" target="_blank">Java中连接MySql数据库的几种方法</a></li><li><span>5</span><a href="https://www.bwwdw.com/article/87xl.html" title="HeidiSQL MySQL数据库备份导入导出数据库" target="_blank">HeidiSQL MySQL数据库备份导入导出数据库</a></li><li><span>6</span><a href="https://www.bwwdw.com/article/ku3m.html" title="Python访问MySQL数据库" target="_blank">Python访问MySQL数据库</a></li><li><span>7</span><a href="https://www.bwwdw.com/article/18l4.html" title="MySQL数据库技术教案" target="_blank">MySQL数据库技术教案</a></li><li><span>8</span><a href="https://www.bwwdw.com/article/fw9m.html" title="Java连接MySql数据库,并且实现插入、删除、更新、选择操作" target="_blank">Java连接MySql数据库,并且实现插入、删除、更新、选择操作</a></li><li><span>9</span><a href="https://www.bwwdw.com/article/l233.html" title="mysql数据库笔试题(一)" target="_blank">mysql数据库笔试题(一)</a></li><li><span>10</span><a href="https://www.bwwdw.com/article/il1a.html" title="如何导入导出MySQL数据库" target="_blank">如何导入导出MySQL数据库</a></li></ul></div> <script type="text/javascript">s("right_mid");</script> <div class="right_list"><div class="right_list_t"><i></i><span>最新文章</span></div><ul><li><a href="https://www.bwwdw.com/article/inb.html" target="_blank" title="多层物业服务方案">多层物业服务方案</a></li><li><a href="https://www.bwwdw.com/article/hnb.html" target="_blank" title="(审判实务)习惯法与少数民族地区民间纠纷解决问题(孙 潋)">(审判实务)习惯法与少数民族地区民间纠纷解决问题(孙 潋)</a></li><li><a href="https://www.bwwdw.com/article/mnb.html" target="_blank" title="人教版新课标六年级下册语文全册教案">人教版新课标六年级下册语文全册教案</a></li><li><a href="https://www.bwwdw.com/article/jnb.html" target="_blank" title="词语打卡">词语打卡</a></li><li><a href="https://www.bwwdw.com/article/4nb.html" target="_blank" title="photoshop实习报告">photoshop实习报告</a></li><li><a href="https://www.bwwdw.com/article/1nb.html" target="_blank" title="钢结构设计原理综合测试2">钢结构设计原理综合测试2</a></li><li><a href="https://www.bwwdw.com/article/qnb.html" target="_blank" title="2014年期末练习题">2014年期末练习题</a></li><li><a href="https://www.bwwdw.com/article/enb.html" target="_blank" title="高中数学中的逆向思维解题方法探讨">高中数学中的逆向思维解题方法探讨</a></li><li><a href="https://www.bwwdw.com/article/nnb.html" target="_blank" title="名师原创 全国通用2014-2015学年高二寒假作业 政治(一)Word版">名师原创 全国通用2014-2015学年高二寒假作业 政治(一)Word版</a></li><li><a href="https://www.bwwdw.com/article/lnb.html" target="_blank" title="北航《建筑结构检测鉴定与加固》在线作业三">北航《建筑结构检测鉴定与加固》在线作业三</a></li><li><a href="https://www.bwwdw.com/article/snb.html" target="_blank" title="XX县卫生监督所工程建设项目可行性研究报告">XX县卫生监督所工程建设项目可行性研究报告</a></li><li><a href="https://www.bwwdw.com/article/knb.html" target="_blank" title="小学四年级观察作文经典评语">小学四年级观察作文经典评语</a></li><li><a href="https://www.bwwdw.com/article/znb.html" target="_blank" title="浅谈110KV变电站电气一次设计-程泉焱(1)">浅谈110KV变电站电气一次设计-程泉焱(1)</a></li><li><a href="https://www.bwwdw.com/article/0nb.html" target="_blank" title="安全员考试题库">安全员考试题库</a></li><li><a href="https://www.bwwdw.com/article/cnb.html" target="_blank" title="国家电网公司变电运维管理规定(试行)">国家电网公司变电运维管理规定(试行)</a></li><li><a href="https://www.bwwdw.com/article/9nb.html" target="_blank" title="义务教育课程标准稿征求意见提纲">义务教育课程标准稿征求意见提纲</a></li><li><a href="https://www.bwwdw.com/article/ukb.html" target="_blank" title="教学秘书面试技巧">教学秘书面试技巧</a></li><li><a href="https://www.bwwdw.com/article/ynb.html" target="_blank" title="钢结构工程施工组织设计">钢结构工程施工组织设计</a></li><li><a href="https://www.bwwdw.com/article/6kb.html" target="_blank" title="水利工程概论论文">水利工程概论论文</a></li><li><a href="https://www.bwwdw.com/article/3kb.html" target="_blank" title="09届九年级数学第四次模拟试卷">09届九年级数学第四次模拟试卷</a></li><li><a href="https://www.bwwdw.com/%E5%88%A0%E6%94%B9/" target="_blank" title="删改">删改</a></li><li><a href="https://www.bwwdw.com/%E8%BF%9E%E6%8E%A5/" target="_blank" title="连接">连接</a></li><li><a href="https://www.bwwdw.com/javaWeb/" target="_blank" title="javaWeb">javaWeb</a></li><li><a href="https://www.bwwdw.com/%E6%95%B0%E6%8D%AE%E5%BA%93/" target="_blank" title="数据库">数据库</a></li><li><a href="https://www.bwwdw.com/mysql/" target="_blank" title="mysql">mysql</a></li><li><a href="https://www.bwwdw.com/%E6%9F%A5%EF%BC%88%E7%B2%BE/" target="_blank" title="查(精">查(精</a></li></ul></div> <script type="text/javascript">s("right_bottom");</script> <div class="right_list"><div class="right_list_t"><i></i><span>推荐文章</span></div><ul><li><a href="https://www.bwwdw.com/article/ma2r.html" target="_blank" title="数字电子技术实验报告 - 基于FGPA的4位智能抢答器(verilog HDL)">数字电子技术实验报告 - 基于FGPA的4位智能抢答器(verilog HDL)</a></li><li><a href="https://www.bwwdw.com/article/1a2r.html" target="_blank" title="数控加工实训报告范文(车铣)">数控加工实训报告范文(车铣)</a></li><li><a href="https://www.bwwdw.com/article/4a2r.html" target="_blank" title="数学教师谈话记录">数学教师谈话记录</a></li><li><a href="https://www.bwwdw.com/article/ea2r.html" target="_blank" title="河街乡中小学全面工作量化考核方案">河街乡中小学全面工作量化考核方案</a></li><li><a href="https://www.bwwdw.com/article/qa2r.html" target="_blank" title="北京大学计算机辅助翻译专业 - 图文">北京大学计算机辅助翻译专业 - 图文</a></li><li><a href="https://www.bwwdw.com/article/la2r.html" target="_blank" title="新编剑桥商务英语(高级)第三版2.1">新编剑桥商务英语(高级)第三版2.1</a></li><li><a href="https://www.bwwdw.com/article/na2r.html" target="_blank" title="英汉翻译辅导(练习+参考答案)">英汉翻译辅导(练习+参考答案)</a></li><li><a href="https://www.bwwdw.com/article/ka2r.html" target="_blank" title="机关党支部规范化建设考核细则 - 图文">机关党支部规范化建设考核细则 - 图文</a></li><li><a href="https://www.bwwdw.com/article/sa2r.html" target="_blank" title="东南大学srtp - 图文">东南大学srtp - 图文</a></li><li><a href="https://www.bwwdw.com/article/0a2r.html" target="_blank" title="2018高一英语北师大版必修一习题:单元质量检测(一) 含答案">2018高一英语北师大版必修一习题:单元质量检测(一) 含答案</a></li><li><a href="https://www.bwwdw.com/article/da2r.html" target="_blank" title="激光焊接技术在汽车工业中的应用及发展前景 - 葛宜银讲解">激光焊接技术在汽车工业中的应用及发展前景 - 葛宜银讲解</a></li><li><a href="https://www.bwwdw.com/article/fa2r.html" target="_blank" title="鲁宾逊漂流记名著阅读与练习">鲁宾逊漂流记名著阅读与练习</a></li><li><a href="https://www.bwwdw.com/article/2a2r.html" target="_blank" title="Excel2007练习题">Excel2007练习题</a></li><li><a href="https://www.bwwdw.com/article/va2r.html" target="_blank" title="幼儿园家委会园长发言稿">幼儿园家委会园长发言稿</a></li><li><a href="https://www.bwwdw.com/article/ta2r.html" target="_blank" title="第一次作业答案">第一次作业答案</a></li><li><a href="https://www.bwwdw.com/article/5a2r.html" target="_blank" title="美军联合作战后勤保障纲要">美军联合作战后勤保障纲要</a></li><li><a href="https://www.bwwdw.com/article/xa2r.html" target="_blank" title="生产企业退税14.1版录入步骤 - 图文">生产企业退税14.1版录入步骤 - 图文</a></li><li><a href="https://www.bwwdw.com/article/oa2r.html" target="_blank" title="高一年级历史上学期期末测试4 - 图文">高一年级历史上学期期末测试4 - 图文</a></li><li><a href="https://www.bwwdw.com/article/wa2r.html" target="_blank" title="1a+M2U1教案">1a+M2U1教案</a></li><li><a href="https://www.bwwdw.com/article/ba2r.html" target="_blank" title="铁建设46号-关于铁路建设项目实施阶段材料价差调整的指导">铁建设46号-关于铁路建设项目实施阶段材料价差调整的指导</a></li></ul></div> </div> </div> </div> <div class="footer"> <p>Copyright©<script>timestamp2date(1);</script><a href="https://www.bwwdw.com/" target="_blank" title="博文网">博文网</a>bwwdw.com 版权所有</p> <p class="gray"><a href="https://www.bwwdw.com/article/" target="_blank">最新更新</a> | <a href="https://www.bwwdw.com/hot/" target="_blank">热点专题</a> | <a href="https://www.bwwdw.com/sitemap.html" target="_blank">网站地图</a> | <a href="https://www.bwwdw.com/tag/" target="_blank">TAG专题</a> | <a href="https://www.bwwdw.com/sitemap.xml" target="_blank">XML地图</a> | <a href="https://so.bwwdw.com" target="_blank">范文搜索</a><script type="text/javascript">tj();</script></p> </div> <a href="#0" class="cd-top">Top</a> <script src="/static/fanwen/js/jquery-1.9.1.min.js"></script> <script type="text/javascript"> document.write('<script type="text/javascript" src="/static/fanwen/js/pubuliu.js?'+RAND_STR+'"><\/script>'); document.write('<script type="text/javascript" src="/static/fanwen/js/lazyimg.js?'+RAND_STR+'"><\/script>'); document.write('<script type="text/javascript" src="/static/fanwen/js/gotop.js?'+RAND_STR+'"><\/script>'); </script> <script type="text/javascript"> $.ajax({ "url":"https://www.bwwdw.com/open/doc/readViews.json?id=ia2r", "type":"get", "data":"", "dataType":"json", "success":function(res){ $("#read_views").html(res.data); } }); </script> <script type="text/javascript">bottomAction();</script> </body> </html>