针对性营销10000系统_数据库连接_更新__源码
2008-09-06 01:05
267 查看
<html>
<head>
<title>
保存脚本
</title>
<style type="text/css">
body{
margin:0px;
background-image:url(images/login_02.jpg);
background-repeat:repeat-x;
font:14px Tahoma;
color:#023951;
}
input{
width:122px;
height:20px;
border:1px solid #023951;
color:#035C83;
line-height:20px;
}
</style>
</head>
<%@ page language="java" contentType="text/html; charset=gb2312"
import = "java.sql.*,com.codestudio.util.*" %>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/bg.jpg" width="353"><img src="images/default/banner.jpg" width="353" height="40" /></td>
</tr>
</table>
<table border="1" width="400">
<% String tare = request.getParameter( "textfield3" );
String tare2 = request.getParameter( "textfield2" );
SQLManager myMan = SQLManager.getInstance();
Connection myConn= myMan.requestConnection();
Statement stmt = myConn.createStatement();
stmt.executeUpdate("update sale_plan set Sale_Script='" +tare + "' where Sale_Plan_Id ="+tare2);
ResultSet myResultSet= stmt.executeQuery("select * from SALE_PLAN where Sale_Plan_Id ="+tare2);
if (myResultSet != null)
{
while (myResultSet.next())
{
String cust_id=myResultSet.getString("Sale_Plan_Id");
String plan_id=myResultSet.getString("Sale_Plan_Name");
String state =myResultSet.getString("Sale_Script");
%>
<tr>
<td><%=cust_id %></td>
<td><%=plan_id %></td>
<td><%=state %></td>
</tr>
<%
}
}
stmt.close();
myMan.returnConnection(myConn);
%>
<h1>保存成功</h1>
</table>
</body>
</html>
<head>
<title>
保存脚本
</title>
<style type="text/css">
body{
margin:0px;
background-image:url(images/login_02.jpg);
background-repeat:repeat-x;
font:14px Tahoma;
color:#023951;
}
input{
width:122px;
height:20px;
border:1px solid #023951;
color:#035C83;
line-height:20px;
}
</style>
</head>
<%@ page language="java" contentType="text/html; charset=gb2312"
import = "java.sql.*,com.codestudio.util.*" %>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/bg.jpg" width="353"><img src="images/default/banner.jpg" width="353" height="40" /></td>
</tr>
</table>
<table border="1" width="400">
<% String tare = request.getParameter( "textfield3" );
String tare2 = request.getParameter( "textfield2" );
SQLManager myMan = SQLManager.getInstance();
Connection myConn= myMan.requestConnection();
Statement stmt = myConn.createStatement();
stmt.executeUpdate("update sale_plan set Sale_Script='" +tare + "' where Sale_Plan_Id ="+tare2);
ResultSet myResultSet= stmt.executeQuery("select * from SALE_PLAN where Sale_Plan_Id ="+tare2);
if (myResultSet != null)
{
while (myResultSet.next())
{
String cust_id=myResultSet.getString("Sale_Plan_Id");
String plan_id=myResultSet.getString("Sale_Plan_Name");
String state =myResultSet.getString("Sale_Script");
%>
<tr>
<td><%=cust_id %></td>
<td><%=plan_id %></td>
<td><%=state %></td>
</tr>
<%
}
}
stmt.close();
myMan.returnConnection(myConn);
%>
<h1>保存成功</h1>
</table>
</body>
</html>
相关文章推荐
- 针对性营销10000系统_界面_源码
- 某成教管理CMS系统数据库连接信息泄露
- nodejs博客系统(express+mongodb)2——划分模块+连接数据库
- jdbc连接数据库的7大步骤(以通过jdbc连接实现数据的插入、更新为例)
- 泸州NGN属南气矿工程----N2000网管系统提示连接数据库失败
- ArcGIS Server10.1 +Oracle11g直接连接数据库发布地图,数据增删改查,MapServer实时更新方法
- SQL系统数据库介绍(持续更新)
- ThinkPHP3.2.3---mysql+ajax实现长连接,实时监测数据库数据是否更新
- HSQLDB源码学习——数据库安装启动及JDBC连接
- SSH框架系统连接多个数据库的配置
- 将业务系统数据库的数据显示在页面上并且作WebPart的跨页面连接
- C#连接数据库和插入、删除、更新数据库
- Linux系统下连接Oracle数据库,创建新的数据库用户及分配权限
- DButils工具类能够用来获取数据库连接向数据库插入更新删除对象2
- TFS2010备份:TFS2010在重装系统后,如何把以前的tfs数据库文件连接到tfs中
- ASP进阶之文章在线管理更新--数据库连接篇
- php与mysql系统中出现大量数据库sleep的空连接问题分析
- Synchronization Services for ADO.NET - 创建一个偶然连接数据库系统。(数据同步系统)
- Spark jdbc postgresql数据库连接和写入操作源码解读
- JDBC及简单抄作连接数据库源码