<!-- 查询当前表有多少条记录 -->
<select id="total" resultType="java.lang.Integer">
SELECT COUNT(*) FROM t_area
@Override
public int total() throws Exception{
return areaMapper.total();
}
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
SELECT COUNT(*) FROM t_area 换成SELECT COUNT(1) FROM t_area 试试
resultType="int"试试
cout(id)