mysql分页查询语句错误,请大神指点
<select id="selectProCdnMmBdNiNoHiIpSegInfoBrowse"
        resultMap="proCdnMmBdNiNoHiIpSegInfoMap"
        parameterClass="java.util.Map">
        SELECT
        id,
        id_num,
        INET_ATON(start_ip),
        INET_ATON(end_ip),
        type,
        cdn_basic_id,
        cdn_net_id,
        cdn_node_id,
        cdn_house_id,
        FROM
        pro_cdn_mm_bd_ni_no_hi_ip_seg_info
        limit #startRow#,#endRow#
    </select>

报错信息

Caused by: 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 'FROM   pro_cdn_mm_bd_ni_no_hi_ip_seg_info   limit 0,10000' at line 1
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    at com.mysql.jdbc.Util.getInstance(Util.java:381)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
    at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1356)
    at com.jolbox.bonecp.PreparedStatementHandle.execute(PreparedStatementHandle.java:138)
    at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185)
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221)
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189)
    ... 41 more
weixin_42754420
weixin_42754420 回复AscyJee: 谢谢!
9 个月之前 回复
kaka_yongjie8
AscyJee 回复weixin_42754420: cdn_house_id后面多了个逗号
9 个月之前 回复
weixin_42754420
weixin_42754420 看提示是分页查询错了,但是不就是这么写吗,很头疼,望大神指点
9 个月之前 回复

2个回答

cdn_house_id,这里的逗号去掉看看

多了个逗号,还有你这个名字起得真他妈长。还有你确定不是“parameterType”“parameterClass”是什么鬼

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!