Reputation: 31
I am using xamp server:
when I am running the select query to get data as
SELECT `id`, `relation`, `member_id`, `Relative_id`
FROM `relationship` WHERE `relation` = 'माँ'
All works fine
But when running below example of queries I get 0 results.
Example 1 :
SELECT `id`, `relation`, `member_id`, `Relative_id`
FROM `relationship` WHERE `relation` = 'बेटी'
Example 2 :
SELECT `id`, `relation`, `member_id`, `Relative_id`
FROM `relationship` WHERE `relation` = 'पिता'
the image regarding db table
Table structure:table structure
Upvotes: 3
Views: 57
Reputation: 9554
You must use a Unicode character set (utf8_unicode_ci works fine), declare the field as VARCHAR
and use LIKE
, instead of =
SELECT `id`, `relation`, `member_id`, `Relative_id`
FROM `relationship` WHERE `relation` LIKE 'पिता';
Tested and working.
Upvotes: 2