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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:08:30
Original
1196 people have browsed it

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

Related labels:
Statement of this Website
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template