hibernate+mysql查询条件有中文无法匹配的问题
用hibernate做mysql的数据库连接时,当查询条件中有中文的时候,查询结果没有记录,而数据库中是存在符合条件的记录的。
如下面的查询语句:
select t.id.student.sid from Studentcourse as t where t.fkTid='"+tid+"' and t.id.fkCid='"+cid+"' and t.f...
原创
2013-10-23 17:29:59 ·
264 阅读 ·
0 评论