Java JDBC
创建JDBC应用步骤:
程序实例:
Driver:
DriverManager:
Connection:
conn.setAutoCommit(false); try { Statement stmt=conn.createStatement(); stmt.execute (sql); conn.commit(); } catch (SQLException e1) { conn.rollback();//事务回滚}
Statement:
PreparedStatement:
CallableStatement:
ResultSet:
DataSource: