摘要: MyBatis中普通的insert语句是这样的: 此时Dao接口的public Integer insert(DatabaseObject do);返回的Integer是收到改动的行数,插入成功时返回1 主键默认是由数据库自己加入的,可以使用selectKey的子查询语句获得 但PostgreSQL 阅读全文
posted @ 2016-12-21 11:25 桔子在路上 阅读(8603) 评论(0) 推荐(0) 编辑