- 博客(4)
- 问答 (3)
- 收藏
- 关注
原创 Interface PreparedStatement的execute(), executeQuery(), executeUpdate()方法
[b]execute[/b] boolean execute() throws SQLException Executes the SQL statement in this PreparedStatement object, which may be any kind of SQL statement. Some prepared statements re...
2010-07-12 21:54:50
294
1
原创 PreparedStatement prepareStatement()
传送给数据库的 SQL 语句通过一个包含两个步骤的过程来返回结果。首先准备它们,然后处理它们。借助 Statement 对象,这两个阶段对应用程序而言变成一个阶段。 PreparedStatement 允许将这两个步骤分开。准备步骤在创建对象时发生,而处理步骤在对 PreparedStatement 对象调用 executeQuery、executeUpdate 或 execute 方法时发...
2010-07-12 21:46:38
270
原创 Interface Connection
java.sql Interface Connection All Superinterfaces: Wrapper ---------------------------------------------------------------------- public interface Connection extends Wrapper A connectio...
2010-07-12 21:35:48
172
Java 连接 Oracle
1. 建立驱动 2. 连接数据库 3. 发送sql语句 4. 关闭连接 [code="java"] public static final String DBDRIVER = "oracle.jdbc.driver.OracleDriver"; public static final String DBURL = "jdbc:oracle:thin:@192.168.209...
2010-04-27 22:33:16
131
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人