摘要: 一、获取表字段: user_tab_columns 为当前用户的columns,除此之外还有all_tab_columns和dba_tab_columns,这两个多了owner列 二、获取表注释: 同理,还有all_tab_comments 和 dba_tab_comments ,也多了owner列 阅读全文
posted @ 2019-07-29 10:10 汤姆汀 阅读(3831) 评论(0) 推荐(0) 编辑
摘要: //插入很多书(批量插入用法) public void insertBooks(List<Book> book) { final List<Book> tempBook=book; String sql="insert into book(name,pbYear) values(?,?)"; jdb 阅读全文
posted @ 2019-07-29 09:02 汤姆汀 阅读(915) 评论(0) 推荐(0) 编辑
摘要: DB2、Mysqlcreate table T37_PARTY_RESULT20181224 like T37_PARTY_RESULTinsert into T37_PARTY_RESULT20181224 select * from T37_PARTY_RESULT Oraclecreate t 阅读全文
posted @ 2019-07-26 17:54 汤姆汀 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Spring Boot 使用事务非常简单,首先使用注解 @EnableTransactionManagement 开启事务支持后,然后在访问数据库的Service方法上添加注解 @Transactional 便可。 关于事务管理器,不管是JPA还是JDBC等都实现自接口 PlatformTransa 阅读全文
posted @ 2019-07-24 11:45 汤姆汀 阅读(4196) 评论(0) 推荐(0) 编辑