简体   繁体   中英

MySQL SELECT / QUERY - How can I select all datarecords by a string independet of write art?

I have follow php code:

$query  = "SELECT  * FROM catalog   WHERE   Keywords  LIKE  '%$Keywords%'" ;

where Keywords contains a string in the greek language ( as you know greek words have an accent (like: ξυλουργεία νομού Ηλείας). I want to search the column of the mysql-column independet of the writting art of the words that Keywords contains. Those words are given from visitors of my site. The visitor can write as follow those key words: ΞΥΛΟΥΡΓΕΙΑ ΝΟΜΟΥ ΗΛΕΙΑΣ, or Ξυλουργεία νομού Ηλείας etc.

Thnx

it would be for me much better if you could answer my question in the German or Greek languange.

USE排序规则以_ci结尾(表示不区分大小写),并确保数据库中的字段不是二进制的(比较_bin排序规则以及标记为二进制的字段时区分大小写)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM