单项选择题
在Mybatis中,下列关于ResultType说法错误的是()。
A.resultType表示返回值类型为:完整类名或别名,也允许使用基本的数据类型,包括String 、int类型
B.resultType和resultMap的数据结构是一样的,都是Map结构
C.如果PoJo的属性名与SQL语句查询出来的字段名不一致的话,也可使用resultType来进行结果的自动映射
D.resultType和resultMap不能同时使用
点击查看答案
相关考题
-
多项选择题
mybaties中模糊查询like语句的写法()。
A.select *from foo where bar like #{value}
B.select *from foo where bar like #{%value%}
C.select *from foo where bar like %#{value}%
D.select *from foo where bar like "%"${value}"%" -
单项选择题
以下()属于查询班级所有学生并按照年龄升序排序的SQL语句。
A.select *from student group by age
B.select *from student group by age desc
C.select *from student order by age desc
D.select *from student order by age -
单项选择题
以下()是查询学生记录表中的第3-5条数据。
A.select *from student limit 2,3
B.select *from student limit 2,5
C.select *from student limit 3,5
D.select *from student limit 3,2
