好久没有编写有关数据库应用程序啦,这里回顾一下java JDBC。1.使用Java
JDBC操作数据库一般需要6步:(1)建立JDBC桥接器,加载数据库驱动;(2)连接数据库,获得Connection对象(使用数据库连接地址,用户名,密码);(3)获得数据库Statement对象;(4)执行数据库操...
分类:
数据库 时间:
2014-05-23 07:12:17
阅读次数:
278
17:34 2013/6/7JDBC //添加客户 public void
addNewCustomer(Customer c) throws DAOException { Connection conn = null;
PreparedStatement p...
分类:
数据库 时间:
2014-05-23 05:26:51
阅读次数:
360
//获取数据表结构public static void
getConnAndTableStruct(){ Connection connection = null; PreparedStatement pstmt =
null; ResultSetMetaData rsmd = null; t...
分类:
数据库 时间:
2014-05-23 03:39:32
阅读次数:
338
线程可以有6中状态。[1].New(新生)[2].Runnable(可运行)[3].Blocked(被阻塞)[4].Waiting(等待)[5].Timed
Waiting(计时等待)[6].Terminated(被终止)1.新生(New)线程: 当使用new 操作符创建一个先的线程,但该线程还没....
分类:
编程语言 时间:
2014-05-23 03:36:45
阅读次数:
284
Microsoft Open Technologies has recently
released a Portable Class Libraryfor SQLite. Thanks to it, we can use SQLite in
the same way in all the suppo...
分类:
数据库 时间:
2014-05-22 15:06:51
阅读次数:
428
在查看alert日志的时候发现: 1
*********************************************************************** 2 3
Fatal NI connect error 12170. 4 5 VERSION INFORMATI...
分类:
其他好文 时间:
2014-05-21 20:13:32
阅读次数:
298
1、直接通过JDBC API持久化实体域对象: A、java.sql常用接口和类:
DriverManager:驱动程序管理器,负责创建数据库连接。 Connection:代表数据库连接。 Statement:负责执行SQL语句。
PreparedStatement:负责执...
分类:
系统相关 时间:
2014-05-21 18:37:54
阅读次数:
346
最近开发,兄弟们问我这个问题,写出来解决方法和大家分享一下。
当控制台出现:
Failed to install ***.apk on device '019417a3': Unable to open sync connection!
java.io.IOException: Unable to open sync connection!
Launch canceled!
...
分类:
其他好文 时间:
2014-05-21 14:13:00
阅读次数:
496
Tautology
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9078
Accepted: 3477
Description
WFF 'N PROOF is a logic game played with dice. Each die has six...
分类:
其他好文 时间:
2014-05-21 13:53:44
阅读次数:
259
Balance
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 10065
Accepted: 6231
Description
Gigel has a strange "balance" and he wants to poise it. Actually...
分类:
其他好文 时间:
2014-05-21 07:23:20
阅读次数:
312