目录一、使用JDBC的getGeneratedKeys方法二、使用SELECT LAST_INSERT_ID()函数三、使用UUID作为主键总结一、使用JDBC的getGeneratedKeys方法
The following code snippet works fine in 1.8.7 on Mac OS X, but not in 1.8.6 on Ubuntu. Why? Is there a workaround?