访问数据库过程:
 (1)Load JDBC驱动
 (2)建立数据库网络连接
 (3)创建执行语句
 (4)执行命令(查询,批量查询/或存储过程)
 (5)关闭连接

执行语句:
 Statement
 PreStatement
 CallableStatement(参数索引,重输出参数开始->输入参数)
 格式:[]? = call procedure_name(?, ?, ...)
 主要方法:execute,executeUpdate,executeQuery

事务:
 setAutoCommit(false);
 commit();
 rollback();

ORM(object-to-relation mapping)

相关文章:

  • 2022-12-23
  • 2021-12-06
  • 2021-06-18
  • 2022-01-29
  • 2021-08-26
  • 2021-08-27
  • 2022-01-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2021-11-24
  • 2021-09-02
相关资源
相似解决方案