在SQL Server中搜索扩展的ascii

时间:2012-10-22 06:45:22

标签: sql-server asciiencoding

  

可能重复:
  Extended ascii characters search in SQL Server

我在SQL Server中有一个表,其中的数据可以使用扩展的charcaters(♥,♣,♦...)存储在其中一列中。

从我的.net数据库层,字符串以编码格式传递给数据库。

数据库中有Name列,其值为santosh♥

现在,从我的.net代码,我将'santosh♥'传递为'%E2%99%A5'(santosh♥的编码值)。 因此,现在数据库必须使用santosh♥字符串在Name列中搜索'%E2%99%A5'

例如:

select * from table where Name='%E2%99%A5';

但上述查询不起作用。

任何帮助?

0 个答案:

没有答案