最近需要做一个验证“ANDROID终端”下载数据的效率问题,其中需要到向sqlserver2008数据库中添加测试数据step1:定义相关数据库信息static final String DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";...
分类:
数据库 时间:
2015-01-06 13:20:07
阅读次数:
193
当跑jndi项目时抛出:org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'异常解决办法:1、在Tomcat 6.0\lib下加入ora...
分类:
数据库 时间:
2015-01-05 16:35:37
阅读次数:
136
主要步骤包括: 加载驱动; 连接数据库; 使用语句操作数据库; 关闭数据库连接,释放资源。1、需要导包;2、加载数据驱动: mysql驱动名:com.mysql.jdbc.Driver 加载方式:Class.forName(驱动名)3、连接以及关闭数据库 1)DriverManager...
分类:
数据库 时间:
2015-01-05 12:44:04
阅读次数:
190
一、准备工作1、 首先,下载mongoDB对Java支持的驱动包驱动包下载地址:https://github.com/mongodb/mongo-java-driver/downloadsmongoDB对Java的相关支持、技术:http://www.mongodb.org/display/DOCS...
分类:
数据库 时间:
2015-01-05 11:08:42
阅读次数:
282
首先添加所需要驱动包(可通过nuget获得)using MongoDB.Bson;using MongoDB.Driver;using MongoDB.Driver.Builders;一、设置配置信息 //连接信息 static string conn = "mongodb://lo...
分类:
数据库 时间:
2015-01-04 17:02:57
阅读次数:
249
MySql: driver:com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/database_nameSQL Server 2008: driver:com.microsoft.sqlserver.jdbc.SQLServerDri...
分类:
数据库 时间:
2015-01-04 16:55:49
阅读次数:
209
//创建数据库链接 在1.7的版本驱动中这样写是会报 MongoServer方法已过时的 //MongoServer server = MongoDB.Driver.MongoServer.Create(strconn); //带有用户名,密码的如下...
分类:
数据库 时间:
2015-01-04 16:54:02
阅读次数:
222
/* hello.c */#include #include static int hello_init(void){ printk(KERN_ALERT "hello init"\n); return 0;}static void hello_exit(void){ printk...
分类:
系统相关 时间:
2015-01-02 10:58:09
阅读次数:
213
JDBC编程步骤加载驱动程序:Class.forName(driverClass) 加载Mysql驱动:Class.forName("com.mysql.jdbc.Driver") 加载Oracle驱动:Class.forName("oracle.jdbc.driver.OracleDriver.....
分类:
数据库 时间:
2015-01-02 01:12:06
阅读次数:
302
一、input子系统架构
input子系统由驱动层drivers,输入子系统核心层input core,事件处理层event handler组成。
一个输入事件,通过输入设备发给系统如鼠标移动,键盘按键按下等通过device driver->input core(handler->event函数)->event handler->user space的顺序到达用户空间传给应用程序。
一个...
分类:
其他好文 时间:
2015-01-01 23:55:05
阅读次数:
374