数据库查询报错You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
java试用
·
报错:
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 ‘-test.por_model_report pmr
on su.user_id =pmr.creator_code’ at line 3 */
原因:
因为版本的问题
解决:
切换到同一服务下进行查询,然后将其中一个作为主表–不用写数据库名,另一个从表作为副标–要写数据库名
更多推荐
已为社区贡献4条内容
所有评论(0)