Java插入中文到数据库中文变成问号???解决办法
在url后面添加参数:url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8
·
在url后面添加参数:url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8
DriverManager.getConnection("jdbc:mysql://localhost:3306/students?useUnicode=true&characterEncoding=utf-8", "root", "");
DriverManager.getConnection("jdbc:mysql://localhost:3306/students", "root", "");
更多推荐
已为社区贡献1条内容
所有评论(0)