Mybatis 分页问题 parameterType="java.util.Map" 10
<selectid="selectUserByPage"resultMap="BaseResultMap"parameterType="java.util.Map">se...
<select id="selectUserByPage" resultMap="BaseResultMap" parameterType="java.util.Map">
select <include refid="Base_Column_List" />
from sys_user limit #{startCount},#{endCount}
</select>
<resultMap id="BaseResultMap" type="com.sky.yipin.entity.SysUser">
<id column="id" property="id" jdbcType="INTEGER" />
<result column="username" property="username" jdbcType="VARCHAR" />
<result column="phone" property="phone" jdbcType="VARCHAR" />
<result column="email" property="email" jdbcType="VARCHAR" />
<result column="password" property="password" jdbcType="VARCHAR" />
<result column="user_type" property="userType" jdbcType="VARCHAR" />
</resultMap>
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null,null' at line 3 展开
select <include refid="Base_Column_List" />
from sys_user limit #{startCount},#{endCount}
</select>
<resultMap id="BaseResultMap" type="com.sky.yipin.entity.SysUser">
<id column="id" property="id" jdbcType="INTEGER" />
<result column="username" property="username" jdbcType="VARCHAR" />
<result column="phone" property="phone" jdbcType="VARCHAR" />
<result column="email" property="email" jdbcType="VARCHAR" />
<result column="password" property="password" jdbcType="VARCHAR" />
<result column="user_type" property="userType" jdbcType="VARCHAR" />
</resultMap>
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null,null' at line 3 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |