偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

SQL Server數(shù)據(jù)庫(kù)正確獲取漢字字串的拼音聲母

數(shù)據(jù)庫(kù) SQL Server
我們今天主要向大家講述的是實(shí)現(xiàn)SQL Server數(shù)據(jù)庫(kù)中正確獲取漢字字串的拼音聲母的正確操作步驟,以下就是文章的主要內(nèi)容描述。

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

  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)容就是對(duì)SQL Server數(shù)據(jù)庫(kù)中獲取漢字字串的拼音聲母的介紹,望你能有所收獲。

【編輯推薦】

  1. SQL Server 2005允許遠(yuǎn)程的配置流程
  2. SQL Server 2005常見(jiàn)錯(cuò)誤的破解方案
  3. MS SQL Server 2000系統(tǒng)數(shù)據(jù)類型有哪些?
  4. 批量修改SQL Server 2005表構(gòu)架很簡(jiǎn)單!
  5. SQL server DateDiff 函數(shù)語(yǔ)法中的命名參數(shù)
責(zé)任編輯:佚名 來(lái)源: uml.org.cn
相關(guān)推薦

2010-07-12 08:36:35

SQL Server數(shù)

2010-07-01 16:52:53

SQL Server數(shù)

2010-07-21 17:02:35

SQL Server取

2010-07-01 15:02:29

SQL Server數(shù)

2010-06-28 10:36:42

SQL Server數(shù)

2010-07-01 11:14:36

SQL Server

2010-07-07 10:31:43

SQL Server數(shù)

2010-07-07 14:17:43

SQL Server數(shù)

2019-04-26 13:20:24

數(shù)據(jù)庫(kù)PostgreSQL Oracle

2010-07-21 10:05:29

SQL Server排

2010-07-01 11:03:04

SQL Server轉(zhuǎn)

2010-07-22 16:07:02

SQL Server數(shù)

2010-06-30 08:27:45

SQL Server數(shù)

2010-06-29 17:56:47

正確升級(jí)SQL Ser

2010-07-22 10:52:21

SQL Server數(shù)

2010-06-30 15:52:05

2010-07-15 17:28:50

SQL Server

2010-07-13 09:12:56

SQL Server

2010-07-16 10:29:02

SQL Server

2010-09-06 16:07:21

SQL函數(shù)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)