Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What is the result set of mybatis query column? Query column
What is the result set of mybatis query column? Query column
If you want to query only one field, you can use String with resultType = "String.

If there are multiple fields, you can use the related class name as the return type. For example, the entity class corresponding to your Monitor_entity table is Monitor, so you can write: resultType = "Monitor.

If there are multiple fields, and multiple fields are not in the same table, you can use Map as the return value, with resultType="Map ",which is convenient for taking values.