用from Profile pro where pro.school like ?");
也是一样的效果。
出现乱码。
也是一样的效果。
出现乱码。
解决方案 »
- 急求高手教教
- spring mvc
- struts1.x+spring2.0中spring管理action的问题
- 拍拍网的网址是如何实现的
- Exception occurred during processing request: null java.lang.NullPointerExceptio
- 如何打开struts debug 信息
- j2ee tutoril 1.3中的一个例子Bookstore3App,配置时出错,请兄弟们帮忙啊~~
- 一个神奇的错误
- 关于在阿里云上部署webservice无法调用的问题
- 关于Java反序列化的一个奇怪的问题!
- 请问如何让自己做的网站能与银行的财务系统打教导?
- 招J2EE软件开发人员,3000RMB/月 工作地点:哈尔滨
就是你的编辑器的编码方式
可为什么查不到值呢?
12:13:44,671 INFO SessionFactoryImpl:353 - Checking 0 named HQL queries
12:13:44,671 INFO SessionFactoryImpl:373 - Checking 0 named SQL queries
Hibernate: select profile0_.id as id0_, profile0_.UserId as UserId0_, profile0_.
registerTime as register3_0_, profile0_.sex as sex0_, profile0_.school as school
0_, profile0_.department as department0_, profile0_.enterTime as enterTime0_, pr
ofile0_.dorm as dorm0_, profile0_.highSchool as highSchool0_, profile0_.homeCity
as homeCity0_, profile0_.homeProvice as homePro11_0_, profile0_.birthday_year a
s birthday12_0_, profile0_.birthday_month as birthday13_0_, profile0_.birthday_d
ay as birthday14_0_ from profile profile0_ where (profile0_.school like ? )
12:13:44,859 DEBUG StringType:79 - binding '%大学%' to parameter: 1上面是log4j输出的?
可查不到结果。
用mysql> select * from profile where (school like '%大学%');在mysql上直接查可以得到13条。奇怪啦??