项目运行提示这个:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? and password=?' at line 1
这是我的该段代码,请问是哪里出了问题呢
项目运行提示这个:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? and password=?' at line 1
这是我的该段代码,请问是哪里出了问题呢
你好,看了你的代码和截图报错,你的代码其实没啥大问题。
这种写法是对的,不过需要你在表里看看,字段的类型是否一致。我觉得这个可能性更大一点。
希望我的回答能够帮助到你,有问题请继续联系。