我创建了一个表单,其中包含我想存储在 MySQL 表中的印地语 (UTF-8) 数据。与 UTF 数据对应的列的排序规则值设置为utf_general_ci
。
我已成功将数据存储在表中,但是当我执行 select-where 查询时,它不会返回数据。这是我的查询:
选择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
从np
。 在births
哪里。=“d”和。='e'和。='f'和。=“g”和。= 'हिंदू' AND . ='पुरुष' Birth
Birth
baby_name
Birth
baby_father_name
Birth
baby_mother_name
Birth
baby_father_address
Birth
person_religion
Birth
baby_gender
数据库的名称是np,表的名称是births
上面的查询打印在日志文件中。我试图在 HeidiSQL(MySQL 的前端)中复制并粘贴相同的查询,但它没有运行。但是,如果我删除以下部分: ** AND Birth
。person_religion
= 'हिंदू' AND Birth
. baby_gender
= 'पुरुष'**,查询工作正常。
我该如何解决这个问题?