I have a table where one column may contain data which includes extended
ASCII characters (like ♥,♦,♣....
)
When I search for the same using select
query the result set doesn't fetch exactly
for ex:
create table testasci(id int,name varchar(20))
insert into testasci values(1, 'santosh');
insert into testasci values(2, 'santosh♥');
insert into testasci values(3, 'santosh♦');
insert into testasci values(4, 'santosh2');
insert into testasci values(5, 'santoshσ');
insert into testasci values(6, 'santosh3');
When I search for any name with extended ASCII character like the following
select * from testasci where name = 'santosh♥'
result set displays id2, id3.
That too with question mark (?
) symbol instead of the original character.
Any help? My result set should display only id2
for the above search query