Home >Backend Development >PHP Tutorial >,php+mysql怎么根据拼音首字母查询汉字数据库

,php+mysql怎么根据拼音首字母查询汉字数据库

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:08:301187browse

求助,php+mysql如何根据拼音首字母查询汉字数据库?
求助,php+mysql如何根据拼音首字母查询汉字数据库?
比如搜索lah,mysql查询结果如'拉花,拉货,拉花作业,拉花贴纸腰线,拉花贴纸,拉红,拉货宏光';
请问如何实现?
------解决思路----------------------
可以数据库增加一个用于存放首字母的字段,汉字添加到数据库的时候添加对应的首字母字符串,网上有生成汉字首字母的程序

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn