在insert 中跑insert语句可以获得插入数据主键id, 但是在存储过程中插入怎么获得主键id呢?我总不能一个insert的存储过程放在select中去做吧。这会不会存在缓存问题,或者mybatis需要做更多的事情?
Comment From: harawata
See this FAQ entry: https://github.com/mybatis/mybatis-3/wiki/FAQ#how-can-i-retrieve-the-value-of-an-auto-generated-key Please post your question to the mailing list or Stack Overflow. Thank you!