报错信息为:mysql.connector.errors.ProgrammingError: 1064 (42000): 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 '0, 100' at line 1
确实是 0,100 周边的信息:
上图为拼接sql语句,最右部分为限制范围,检查后发现为错误为该部分 limit前少了一个空格
以后拼接sql语句时要格外注意空格>_<