MySQL报错:Parameter index out of range (2 > number of parameters, which is 1).解决

原文地址: https://blog.csdn.net/qq_39641842/article/details/99706182

Exceptions:
Parameter index out of range (2 > number of parameters, which is 1).

动态sql语句中where标签使用的时候,由于在select标签中按快捷键添加了注释,导致出现错误,-- 只要把注释去掉或者改成正确的注释格式就可以成功运行。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/ABestRookie/article/details/113919090