I've create a form that contains Hindi (UTF-8) data which i want to store in MySQL table. The columns corresponding to UTF data has collation value set to utf_general_ci
.
I've successfully stored the data in table but when I'm executing a select-where query, it doesn't returns the data. Here is my query:
SELECT Birth
.sno
, Birth
.bookingnumber
, Birth
.birth_date
, Birth
.baby_gender
, Birth
.baby_name
, Birth
.baby_father_name
, Birth
.baby_father_address
, Birth
.baby_mother_name
, Birth
.birth_place
, Birth
.place_type
, Birth
.applicant_name
, Birth
.applicant_address
, Birth
.registration_number
, Birth
.registration_date
, Birth
.registration_ward
, Birth
.registration_city_village
, Birth
.registration_district
, Birth
.remark
, Birth
.mother_place_name
, Birth
.mother_place_type
, Birth
.mother_place_district
, Birth
.mother_place_state
, Birth
.person_religion
, Birth
.father_education
, Birth
.mother_education
, Birth
.father_occupation
, Birth
.mother_occupation
, Birth
.mother_age_at_marriage
, Birth
.mother_age_at_birth
, Birth
.count_of_mother_child
, Birth
.birth_by
, Birth
.birth_method
, Birth
.mother_weight_at_birth
, Birth
.pregnancy_duration
, Birth
.date_of_issue
FROM np
.births
AS Birth
WHERE Birth
.baby_name
= 'd' AND Birth
.baby_father_name
= 'e' AND Birth
.baby_mother_name
= 'f' AND Birth
.baby_father_address
= 'g' AND Birth
.person_religion
= 'हिंदू' AND Birth
.baby_gender
= 'पुरुष'
The name of the database is np and name of the table is births
The above query was printed in the log file. I tried to copy and paste the same query in HeidiSQL (front end for MySQL) but its not running. However, if I remove the following part: ** AND Birth
.person_religion
= 'हिंदू' AND Birth
.baby_gender
= 'पुरुष'**, the query works fine.
How can I resolve this issue?