单项选择题
在使用MyBatis的select标签查询客户(customer)的电话信息时,如果客户实体中电话的属性名为mobile,而客户表所对应的字段名为phone,则正确的写法是()。
A.select phone from customer
B.select mobile from customer
C.select mobile as phone from customer
D.select phone as mobile from customer
点击查看答案
相关考题
-
单项选择题
以下()不属于MyBatis的API。
A.SqlSessionFactoryBuilder
B.SqlSessionFactory
C.Executor
D.SqlSession -
单项选择题
以下关于MyBatis集合类型参数的处理,说法错误的是()。
A.当参数为Collection接口,转化为Map,Map的Key为collection
B.当参数类型为List接口时,除了collection的值外,list作为key
C.如果参数为数组,也会转化为Map,Map的key为array
D.如果参数为数组,也会转化为Map,Map的key为list -
多项选择题
Mapper接口的参数可以是()。
A.简单类型
B.pojo类型包装类型
C.Map
D.List集合
