【MySQL】mysql 数据库名称 中间带有中划线问题

在这里插入图片描述

1.概述

写了一个操作MYSQL的类,结果连接的MySQL库信息带有中划线。

报错如下

java.sql.SQLSyntaxErrorException: 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 '-web' at line 

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/107460833