码迷,mamicode.com
首页 >  
搜索关键字:resultset connection    ( 6325个结果
JDBC的封装
连接数据库的步骤: 1.加载JDBC驱动 2.提供连接参数 3.建立数据库连接 4.创建一个statement 5.执行SQL语句 6.处理结果 7.关闭JDBC对象 新建一个JDBCUtil类 package com.jdbc.utils; import java.sql.Connection; ...
分类:数据库   时间:2014-09-29 01:33:57    阅读次数:492
ansible runner把结果写入MongoDB
http://rfyiamcool.blog.51cto.com/1030776/1440624http://rfyiamcool.blog.51cto.com/1030776/1422263root@ubuntu12:~/ansible#vimongo.pyimportsysimportpymongoimportansible.runnerdeflog(res):conn=pymongo.Connection(host="localhost",port=27017)db=conn["ansible"]ift..
分类:数据库   时间:2014-09-28 18:51:37    阅读次数:235
Java对MySQL数据库进行连接、查询和修改(转)
Java对MySQL数据库进行连接、查询和修改0. 一般过程: (1) 调用Class.forName()方法加载驱动程序。 (2) 调用DriverManager对象的getConnection()方法,获得一个Connection对象。 (3) 创建一个Statement对象,准备一个SQ...
分类:数据库   时间:2014-09-28 17:19:43    阅读次数:321
configure PUTTY to not time out
To modify an existing session with "keep alives" to maintain your connection follow the steps below:Open the PuTTy application and navigate to theOpti...
分类:其他好文   时间:2014-09-27 07:13:49    阅读次数:202
[转]何为C10K问题
我在学习网络编程的时候经常看到C10K问题,那么究竟什么是C10K问题呢?我看到了一篇好文章就转了过来,原文地址为:c10k问题 所谓c10k问题,指的是服务器同时支持成千上万个客户端的问题,也就是concurrent 10 000 connection(这也是c10k这个名字的由来)。由于硬...
分类:其他好文   时间:2014-09-26 20:01:18    阅读次数:145
How to Kill All Processes That Have Open Connection in a SQL Server Database[关闭数据库链接 最佳方法] -摘自网络
SQL Server database administrators may frequently need in especially development and test environments instead of the production environments to kill ...
分类:数据库   时间:2014-09-26 19:06:48    阅读次数:667
Host XXX is blocked because of many connection errors, unblock with 'mysqladmin flush-hosts
连接MySQL失败,除了权限问题之外,还遇到这种情况,出错信息:HostXXXisblockedbecauseofmanyconnectionerrors,unblockwith‘mysqladminflush-hosts‘。而且XXX还不是IP地址而是domainname。MySQL服务器和客户端在同一台测试及其上,连接的时候用的mysql-uroot-hipaddr。查看机..
分类:数据库   时间:2014-09-25 23:54:08    阅读次数:189
Architecture of a Highly Scalable NIO-Based Server
一。thread-per-connectionThe thread-per-connection approach uses an exclusive worker thread foreach connection. Within the handling loop, a worker threa...
分类:其他好文   时间:2014-09-25 21:51:07    阅读次数:185
PLSQL_性能优化系列12_Oracle Connection Management
2014-09-25 BaoXinjian一、摘要在官方文档《oracle performance tuning guide》中提到Connecting to the database is an expensive operation that is highly unscalable。数据库的连...
分类:数据库   时间:2014-09-25 18:05:17    阅读次数:273
如何获取ResultSet的行数和列数
当我们执行数据库查询返回一个ResultSet的时候,很多情况下我们需要知道这个 ResultSet的大小,即它的行数和列数。我们知道它的列数可以通过 resultSet.getMetaData().getColumnCount()很容易地得到,然而,java API没有提供直接访问ResultSe...
分类:其他好文   时间:2014-09-25 16:23:09    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!