日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
SQL Server數(shù)據(jù)庫正確獲取漢字字串的拼音聲母

以下的文章主要是對SQL Server數(shù)據(jù)庫中正確獲取漢字字串的拼音聲母的正確操作步驟的描述,假如你對SQL Server數(shù)據(jù)庫中正確獲取漢字字串的拼音聲母的正確操作步驟有興趣了解的話,你就可以瀏覽以下的文章了。

創(chuàng)新互聯(lián)自2013年創(chuàng)立以來,公司自成立以來始終致力于為企業(yè)提供官網(wǎng)建設(shè)、移動互聯(lián)網(wǎng)業(yè)務(wù)開發(fā)(微信小程序開發(fā)、手機(jī)網(wǎng)站建設(shè)、重慶APP開發(fā)公司等),并且包含互聯(lián)網(wǎng)基礎(chǔ)服務(wù)(域名、主機(jī)服務(wù)、企業(yè)郵箱、網(wǎng)絡(luò)營銷等)應(yīng)用服務(wù);以先進(jìn)完善的建站體系及不斷開拓創(chuàng)新的精神理念,幫助企業(yè)客戶實現(xiàn)互聯(lián)網(wǎng)業(yè)務(wù),嚴(yán)格把控項目進(jìn)度與質(zhì)量監(jiān)控加上過硬的技術(shù)實力獲得客戶的一致贊譽(yù)。

 
 
 
  1. CREATE function fGetPy(@str varchar(500)='')  
  2. returns varchar(500)  
  3. as  
  4. begin  
  5. declare @strlen int,@return varchar(500),@ii int  
  6. declare @c nchar(1),@chn nchar(1)  
  7. CREATE function fGetPy(@str varchar(500)='')  
  8. returns varchar(500)  
  9. as  
  10. begin  
  11. declare @strlen int,@return varchar(500),@ii int  
  12. declare @c nchar(1),@chn nchar(1)  
  13. select @strlen=len(@str),@return='',@ii=0 
  14. set @ii=0 
  15. while @ii<@strlen  
  16. begin  
  17. select @ii=@ii+1,@chn=substring(@str,@ii,1)  
  18. if @chn>='吖'  
  19. select @c = char(count(*)+63) from (  
  20. select top 27 * from (  
  21. select chn = '吖' 
  22. union all select '八'  
  23. union all select '嚓'  
  24. union all select '咑'  
  25. union all select '妸'  
  26. union all select '發(fā)'  
  27. union all select '旮'  
  28. union all select '鉿'  
  29. union all select '丌' --because have no 'i'  
  30. union all select '丌'  
  31. union all select '咔'  
  32. union all select '垃'  
  33. union all select '嘸'  
  34. union all select '拏'  
  35. union all select '噢'  
  36. union all select '妑'  
  37. union all select '七'  
  38. union all select '呥'  
  39. union all select '仨'  
  40. union all select '他'  
  41. union all select '屲' --no 'u'  
  42. union all select '屲' --no 'v'  
  43. union all select '屲'  
  44. union all select '夕'  
  45. union all select '丫'  
  46. union all select '帀'  
  47. union all select @chn  
  48. ) as a  
  49. order by chn COLLATE Chinese_PRC_CI_AS ) as b  
  50. where b.chn <=@chn  
  51. else set @c=@chn  
  52. set @return=@return+@c   
  53. end  
  54. return(@return)  
  55. end  

以上的相關(guān)內(nèi)容就是對SQL Server數(shù)據(jù)庫中獲取漢字字串的拼音聲母的介紹,望你能有所收獲。

【編輯推薦】

  1. SQL Server 2005允許遠(yuǎn)程的配置流程
  2. SQL Server 2005常見錯誤的破解方案
  3. MS SQL Server 2000系統(tǒng)數(shù)據(jù)類型有哪些?
  4. 批量修改SQL Server 2005表構(gòu)架很簡單!
  5. SQL server DateDiff 函數(shù)語法中的命名參數(shù)

本文題目:SQL Server數(shù)據(jù)庫正確獲取漢字字串的拼音聲母
轉(zhuǎn)載來源:http://www.dlmjj.cn/article/djdpicc.html