标签:https 符号 eof set 相同 record http 失败 src
package com.bjpowernode.java_learning;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class D139_1_CompileProcess {
public static void main(String[] args) {
Connection con = null;
PreparedStatement ps;
ResultSet rs = null;
try {
Class.forName("com.hxtt.sql.access.AccessDriver");
String URL = "jdbc:Access:///e:xsgl.mdb";
con = DriverManager.getConnection(URL);
}catch(Exception e) {
}
try {
String update = "update tb_record set name=? where ID = ?";
ps = con.prepareStatement(update);
ps.setString(1,"项羽");
ps.setInt(2,4);
for(int i=0;i<10;i++) {
ps.setInt(2, i);
ps.setString(1, String.valueOf((char)(65+i)));
int rowCount = ps.executeUpdate();
}
ps.close();
con.close();
}catch(Exception e) {
}
}
}
类型 | 隔离级别 | 含义 |
---|---|---|
static int | TRANSACTION-NONE | 不支持事务 |
static int | TRANSACTION-READ-COMMITED | 脏读,不可重复读和错误读取都是允许的 |
static int | TRANSACTION-READ-UNCOMMITED | 禁止脏读,不可重复读和错误读取都是允许的 |
static int | TRANSACTION-REPEATABLE-READ | 事务保证能够再次读取相同的数据而不会失败,错误读取是允许的 |
static int | TRANSACTION-SERIALIZABLE | 禁止脏读,不可重复读和错误读取 |
标签:https 符号 eof set 相同 record http 失败 src
原文地址:https://www.cnblogs.com/ruigege0000/p/13694100.html