How to handle search query with Japanese language with MySql?

LazyCatIT

I use MySQL Server for Web App JSP, and have a problem with LIKE query in MySQL. When i use LIKE query with Katakana type of Japanese language, sometime results don't display correctly.

Example:

SELECT  r.report_id, r.user_id, u.user_name
FROM report r JOIN user u ON u.user_id = r.user_id
WHERE r.report_comment LIKE CONCAT('%', 'AC', '%') )

In this query, when i type 'AC' character with English, and try to execute this query with Java. Results is correct(1 row returned).

enter image description here

But when i type 'AC' character with Katakana, and try to execute this query with Java. No rows are found. enter image description here

How to handle search query correctly with all of case?

ortis

The MySQL CJK faq contains various tips about how to deal with Japanese character. The paragraph Make sure that the problem is not with the browser or other application, rather than with MySQL seems to provide fix to your issue.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Search query optimization in mysql

来自分类Dev

How to search in the mysql command history

来自分类Dev

How to write contains query in SQLite fts3 fulltext search

来自分类Dev

Hibernate Search query for class

来自分类Dev

MySQL and PYTHON. How to query an WHERE 'column' IN tuple

来自分类Dev

将?search = query重写为/ search / query和分页

来自分类Dev

Elastic Search Query with Java Api

来自分类Dev

How to handle callback registration

来自分类Dev

How to handle encrypted string?

来自分类Dev

Addition from MySQL query

来自分类Dev

MySQL Query ORDER BY with modulus

来自分类Dev

MySQL Query with count, group by

来自分类Dev

Sorting a MySQL search result with Priority

来自分类Dev

Hibernate Search / Lucene - Search for and rank unrelated entities with a single query

来自分类Dev

Matlab - How to check the existence of a handle

来自分类Dev

How to make keypress handle Enter

来自分类Dev

Why search query not showing any result in PHRETS?

来自分类Dev

ElasticSearch Query Search with Highlight C# Nest

来自分类Dev

PHP中的多个$ query = mysql_query

来自分类Dev

从 mysql _query 转换为 mysqli_query

来自分类Dev

how to search for gist by name

来自分类Dev

How to insert multiple rows from a table to another table based on date condition (PHP-MySQL-Query)?

来自分类Dev

How to edit this mySQL query so as to find people who visited specific page more than x times?

来自分类Dev

MySQL NOT IN Query much slower after Mysql Upgrade

来自分类Dev

MySQL index usage query optimization

来自分类Dev

mysql spring data error(QUERY)

来自分类Dev

mysql: write query with if in where part

来自分类Dev

MYSQL query minus operator not working

来自分类Dev

MYSQL QUERY //发出COUNT个

Related 相关文章

热门标签

归档