package db;
import java.sql.*;
public class db {
private String dbDriver="com.microsoft.jdbc.sqlserver.SQLServerDriver";
private String sConnStr = "jdbc:microsoft:sqlserver://localhost:1433;databasename=youeryuan";
public Connection connect = null;
public ResultSet rs=null;
public db() {
try {
Class.forName(dbDriver).newInstance();
connect = DriverManager.getConnection(sConnStr,"sa","");
}
catch (Exception ex) {
System.out.println("12121");
}
}
public ResultSet executeQuery(String sql) {
try{
connect=DriverManager.getConnection(sConnStr,"sa","");
Statement stmt=connect.createStatement();
rs=stmt.executeQuery(sql);
}catch(SQLException ex){
System.err.println(ex.getMessage());
}
return rs;
}
public void executeUpdate(String sql)
{
Statement stmt=null;
rs=null;
try
{ connect=DriverManager.getConnection(sConnStr,"sa","");
stmt=connect.createStatement();
stmt.executeUpdate(sql);
stmt.close();
connect.close();
}
catch(SQLException ex)
{
System.err.println(ex.getMessage());
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
jsp小海星幼儿园管理系统(毕业设计用)
共101个文件
gif:49个
jsp:22个
js:7个
需积分: 50 31 下载量 26 浏览量
2017-07-20
17:57:30
上传
评论 4
收藏 1.4MB ZIP 举报
温馨提示
主要采用了jsp技术和sqlserver数据库开发的系统,能够对幼儿园基本信息进行管理,主要用在毕业设计学习和参考。
资源推荐
资源详情
资源评论
收起资源包目录
jsp小海星幼儿园管理系统(毕业设计用) (101个子文件)
updatedatetime.asp 1KB
db.class 2KB
.classpath 673B
org.eclipse.wst.jsdt.ui.superType.container 49B
style.css 8KB
css.css 573B
Thumbs.db 206KB
5.gif 191KB
5.gif 191KB
1.gif 71KB
1.gif 71KB
1_01_01.gif 71KB
3.gif 48KB
4.gif 47KB
3.gif 37KB
4.gif 36KB
4.gif 36KB
5.gif 35KB
2.gif 27KB
5.gif 25KB
2.gif 22KB
2.gif 22KB
1.gif 18KB
4.gif 14KB
3.gif 14KB
3.gif 14KB
1.gif 10KB
2.gif 7KB
1_01_02.gif 5KB
1_02_02_01_01.gif 4KB
1_03_03.gif 4KB
1_02_02_02_01.gif 3KB
1_02_01_02.gif 3KB
1_02_02_03_01_01.gif 3KB
1_02_01_02_01.gif 2KB
1_03_02.gif 2KB
1_02_02_01_02_02_02.gif 1KB
1_03_01.gif 1KB
1_02_02_02_02_03.gif 1KB
1_02_02_01_02_02_03.gif 1KB
1_02_02_02_03.gif 1KB
1_02_02_03_04.gif 1KB
1_02_01_02_02_01.gif 1KB
1_02_02_03_01_02_03.gif 1KB
1_02_01_01.gif 1KB
1_02_02_03_01_02_01.gif 1KB
1_02_01_02_02_03.gif 1KB
1_02_02_03_01_03.gif 1KB
1_02_02_02_02_01.gif 1KB
1_02_02_01_02_02_01.gif 1007B
1_02_02_03_02.gif 981B
1_02_01_06.gif 927B
copyUpload.gif 203B
Edit.gif 154B
dialogclose.gif 114B
Upload.gif 111B
CalendarCn.htm 11KB
msbase.jar 278KB
mssqlserver.jar 63KB
msutil.jar 58KB
jspsmartupload.jar 14KB
db.java 1KB
1.jpg 10KB
popup.js 16KB
treemenu.js 13KB
qkjs.js 11KB
Common.js 6KB
hsgliandong.js 2KB
menu.js 297B
Calendar.js 281B
.jsdtscope 500B
index.jsp 14KB
qtleft.jsp 13KB
userreg.jsp 8KB
yuangongxinxilist.jsp 7KB
lyb.jsp 7KB
lyblist.jsp 6KB
news.jsp 6KB
yuangongxinxidetail.jsp 5KB
gg_detail.jsp 4KB
dx_detail.jsp 4KB
login.jsp 3KB
upload_re.jsp 2KB
qttop.jsp 2KB
yonghuzhuce_add_post.jsp 2KB
userlog_post.jsp 2KB
dx.jsp 2KB
qtdown.jsp 2KB
image.jsp 1KB
adminyanzheng.jsp 1KB
upload.jsp 1KB
liuyanban_add_post.jsp 1KB
dx_post.jsp 911B
youeryuan.ldf 1024KB
youeryuan.mdf 1.13MB
MANIFEST.MF 39B
.mymetadata 300B
org.eclipse.wst.jsdt.ui.superType.name 6B
.project 1KB
pixviewer.swf 10KB
共 101 条
- 1
- 2
资源评论
qq_25738953
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功