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

WBOY
Release: 2016-06-13 12:08:30
Original
1117 people have browsed it

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

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!