select title from news where title like N'%毕业生%'
解决方案 »
- SQL中怎样给字段名的别名加上特殊字符?
- 如何取得6月份的数据?
- JSP直接通过sqljdbc.jar连接SQL2005问题,该怎么连接?试了好多连不上,说游标不支持
- 看了很多关于like 速度的问题。我的查询速度也很慢 全文检索 索引 可以给我提供思路吗?
- 千万条记录的SQL Server 2000数据库,数据大小6G,日志15G,巨慢。想重整一下,如何下手?
- 这个怎么会错????
- 数据库插入语句的一点小问题
- 请教各位,有没有可能不使用查询,直接定位到数据库的某一条记录
- 我用其SQL Server2000,怎么有时从客户端连接却失败,真是奇怪?请高手指教配置应该没有问题
- sql server的用户与各自的数据库问题
- wangtiecheng进来接分,刚刚操作失误
- 高手解答 怎样把NTEXT字段中的数据保存到TXT
在DOS下可以查找到中文,你看到的则是乱码!
其实有过开发经验的,一看就明白.现在送你两个字符转换类(以前项目用的);
根据所以用的数据库的编码方式而用.
public static String iso8859togbk(String in) throws Exception{ String re=null;
try {
re = new String(in.getBytes("iso8859-1"), "gbk");
}
catch (Exception e)
{
throw new Exception("error in convert charset");
}
finally{
return re;
}
}
public static String iso8859togb2312(String in) throws Exception{ String re=null;
try {
re = new String(in.getBytes("iso8859-1"), "gb2312");
}
catch (Exception e)
{
throw new Exception("error in convert charset");
}
finally{
return re;
}
select title from news where title like N'%毕业生%'