首页 › 答案 › 题库 › 知识竞赛未分类

在MyBatis中,@SelectKey(statement="select last_insert_id()",keyProperty="id",resultType=Long.class, before=false)注解的作用是什么()

在MyBatis中,@SelectKey(statement="select last_insert_id()",keyProperty="id",resultType=Long.class, before=false)注解的作用是什么()
A、返回值为最后一次插入数据的id值
B、查询数据库中最大的id值
C、查询当前数据库中id的数量
D、查询数据库中是否存在相同id
正确答案:A