取漢字全拼的SQL函式
/*
根據漢字獲取全拼
1.生成所有讀音臨時表
2.根據Chinese_PRC_CS_AS_KS_WS 排序獲取讀音
*/
CREATE function f_GetPinYin(@str varchar(100))
returns varchar(8000)
as
begin
declare @re varchar(8000)
--生成臨時表
declare @t table(chr nchar(1) collate Chinese_PRC_CS_AS_KS_WS,py nvarchar(20))
insert into @t select'吖','a'
insert into @t select'厑','aes'
insert into @t select'哎','ai'
insert into @t select'安','an'
insert into @t select'骯','ang'
insert into @t select'凹','ao'
insert into @t select'八','ba'
insert into @t select'挀','bai'
insert into @t select'兡','baike'
insert into @t select'瓸','baiwa'
insert into @t select'扳','ban'
insert into @t select'邦','bang'
insert into @t select'勹','bao'
insert into @t select'萡','be'
insert into @t select'陂','bei'
insert into @t select'奔','ben'
insert into @t select'伻','beng'
insert into @t select'皀','bi'
insert into @t select'邊','bian'
insert into @t select'辪','uu'
insert into @t select'灬','biao'
insert into @t select'憋','bie'
insert into @t select'汃','bin'
insert into @t select'冫','bing'
insert into @t select'癶','bo'
insert into @t select'峬','bu'
insert into @t select'嚓','ca'
insert into @t select'偲','cai'
insert into @t select'乲','cal'
insert into @t select'參','can'
insert into @t select'倉','cang'
insert into @t select'撡','cao'
insert into @t select'冊','ce'
insert into @t select'膥','cen'
insert into @t select'噌','ceng'
insert into @t select'硛','ceok'
insert into @t select'岾','ceom'
insert into @t select'猠','ceon'
insert into @t select'乽','ceor'
insert into @t select'叉','cha'
insert into @t select'犲','chai'
insert into @t select'辿','chan'
insert into @t select'倀','chang'
insert into @t select'抄','chao'
insert into @t select'車','che'
insert into @t select'抻','chen'
insert into @t select'阷','cheng'
insert into @t select'吃','chi'
insert into @t select'充','chong'
insert into @t select'抽','chou'
insert into @t select'出','chu'
insert into @t select'膗','chuai'
insert into @t select'巛','chuan'
insert into @t select'刅','chuang'
insert into @t select'吹','chui'
insert into @t select'旾','chun'
insert into @t select'踔','chuo'
insert into @t select'呲','ci'
insert into @t select'嗭','cis'
insert into @t select'從','cong'
insert into @t select'湊','cou'
insert into @t select'粗','cu'
insert into @t select'汆','cuan'
insert into @t select'崔','cui'
insert into @t select'邨','cun'
insert into @t select'瑳','cuo'
insert into @t select'撮','chua'
insert into @t select'咑','da'
insert into @t select'呔','dai'
insert into @t select'丹','dan'
insert into @t select'當','dang'
insert into @t select'刀','dao'
insert into @t select'恴','de'
insert into @t select'揼','dem'
insert into @t select'扥','den'
insert into @t select'燈','deng'
insert into @t select'仾','di'
insert into @t select'嗲','dia'
insert into @t select'敁','dian'
insert into @t select'刁','diao'
insert into @t select'爹','die'
insert into @t select'哋','dei'
insert into @t select'嚸','dim'
insert into @t select'丁','ding'
insert into @t select'丟','diu'
insert into @t select'東','dong'
insert into @t select'吺','dou'
insert into @t select'剢','du'
insert into @t select'耑','duan'
insert into @t select'叾','dug'
insert into @t select'垖','dui'
insert into @t select'噸','dun'
insert into @t select'咄','duo'
insert into @t select'妸','e'
insert into @t select'奀','en'
insert into @t select'鞥','eng'
insert into @t select'仒','eo'
insert into @t select'乻','eol'
insert into @t select'旕','eos'
insert into @t select'兒','er'
insert into @t select'發','fa'
insert into @t select'帆','fan'
insert into @t select'匚','fang'
insert into @t select'飛','fei'
insert into @t select'吩','fen'
insert into @t select'豐','feng'
insert into @t select'瓰','fenwa'
insert into @t select'覅','fiao'
insert into @t select'仏','fo'
insert into @t select'垺','fou'
insert into @t select'夫','fu'
insert into @t select'猤','fui'
insert into @t select'旮','ga'
insert into @t select'侅','gai'
insert into @t select'甘','gan'
insert into @t select'岡','gang'
insert into @t select'皋','gao'
insert into @t select'戈','ge'
insert into @t select'給','gei'
insert into @t select'根','gen'
insert into @t select'更','geng'
insert into @t select'啹','geu'
insert into @t select'喼','gib'
insert into @t select'嗰','go'
insert into @t select'工','gong'
insert into @t select'兝','gongfen'
insert into @t select'兣','gongli'
insert into @t select'勾','gou'
insert into @t select'估','gu'
insert into @t select'瓜','gua'
insert into @t select'乖','guai'
insert into @t select'關','guan'
insert into @t select'光','guang'
insert into @t select'歸','gui'
insert into @t select'丨','gun'
insert into @t select'咼','guo'
insert into @t select'妎','ha'
insert into @t select'咍','hai'
insert into @t select'乤','hal'
insert into @t select'兯','han'
insert into @t select'魧','hang'
insert into @t select'茠','hao'
insert into @t select'兞','haoke'
insert into @t select'訶','he'
insert into @t select'
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13651903/viewspace-1015465/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 取漢字的拼音首字母的SQL函式SQL函式
- [轉]SQL獲取漢字拼音首字母函式SQL函式
- ORACLE SQL函式中文漢字轉拼音首字母OracleSQL函式
- DB2中建立漢字拼音首字母的SQL函式DB2SQL函式
- SQLSERVER中實現返回漢字筆畫數的函式;SQLServer函式
- 寫一函式,準確地判斷欄位是否含有漢字或者提取漢字等函式
- 漢字轉拼音pl/sqlSQL
- oralce中漢字轉為拼音首字母的函式(轉)函式
- 寫了一個數字轉成簡 / 繁體漢字的助手函式函式
- mysql獲取漢字的首字母MySql
- java獲取漢字的首字母Java
- [MSSQL]SQL數字轉英文函式SQL函式
- SQL 數字轉換英文函式SQL函式
- sql 獲取系統時間的函式。SQL函式
- oracle sql去掉漢字保留數字或字母OracleSQL
- .Net(C#)獲取漢字聲母的方法C#
- php獲取漢字的拼音 拼音首字母PHP
- 聊聊四種Oracle數字取整函式Oracle函式
- C++依次讀取檔案中的漢字並將漢字轉為string型別C++型別
- PLSQL Language Reference-PL/SQL子程式-PL/SQL函式結果快取-開啟函式結果快取SQL函式快取
- sql常用函式詳解(一)——字串擷取SQL函式字串
- 小談漢字轉換成拼音輔助函式和輔助類函式
- 資料庫SQL語言最常用的數字函式資料庫SQL函式
- 正規表示式刪除字串中的漢字字串
- SQL函式之日期函式SQL函式
- sql函式SQL函式
- Sql 中的 left 函式、right 函式SQL函式
- 【SQL】19 SQL函式SQL函式
- oracle 一欄位 資料存在數字和漢字,只提取數字的sqlOracleSQL
- 字元函式、數字函式和日期函式字元函式
- 修改後的取得漢字首字母的lazarus函式,可以自己增加疑難漢字,這個應該比較理想了函式
- 聚合函式與數字函式函式
- mssql sqlserver 獲取指定漢字的筆畫數的方法分享SQLServer
- 匹配漢字的正規表示式程式碼例項
- iOS 獲取漢字【簡體中文】筆畫數iOS
- SQL中的cast()函式SQLAST函式
- SQL CHARINDEX函式的使用SQLIndex函式
- Sql中的getDate()函式SQL函式