我在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';
但上述查询不起作用。
任何帮助?