Home > Backend Development > PHP Tutorial > Summary of initial consonant function definition and usage

Summary of initial consonant function definition and usage

巴扎黑
Release: 2023-03-09 16:22:02
Original
1305 people have browsed it

sqlServer Get the pinyin initial consonants of Chinese character strings. Friends in need can refer to it. ​ The code is as follows: CREATE function fGetPy(@str varchar(500)='') returns varchar(500) as begin declare @strlen int,@return varchar(500),@ii int declare @c nchar(1),@chn nchar (1) select @strlen=len(@str),@return='',@ii=0 set @ii=0 while @ii='吖' select @c = char(count(*)+63) from ( select top 27 * from ( select chn = '吖' union all select '八' union all select '嚓' union

1. sqlServer Gets the pinyin initial consonants of Chinese character strings

Introduction: Get the pinyin initials of Chinese character strings in sqlServer. Friends who need it can refer to it.

##2. According to Chinese characters. According to the initial consonants of Chinese characters, you want to find relevant records in the table, how to implement it_MySQL

Introduction: According to the initial consonants of Chinese characters, you want to find relevant records in the table, how to implement it

3. PHP Convert Chinese characters, Pinyin, unicode, initial consonants, and final consonants to each other

Introduction: PHP Convert Chinese characters, Pinyin, unicode, initial consonants, Convert vowels to each other

4. js Get Chinese Pinyin, Select code to automatically match letters to get values_Form special effects

Introduction: Convert Chinese characters to Pinyin, the first letter of Pinyin, select to filter by initial consonants

[Related Q&A recommendations]:

The above is the detailed content of Summary of initial consonant function definition and usage. For more information, please follow other related articles on the PHP Chinese website!

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