Public Function HexToStr(ByVal strs As String) As String Dim i As Integer, tmp As String, n If Len(strs) Mod 2 Then Exit Function For i = 1 To Len(strs) Step 2 n = Val("&H" & Mid(strs, i, 2)) If n < 0 Or n > 127 Then n = Val("…
create function fun_del_chinese(@col varchar(1000))returns varchar(1000)ASbegin declare @returnchar varchar(1000),@len int select @returnchar='',@len=1 while(@len<=len(@col)) begin if(ASCII(substring(@col,@len,1))<122) set @returnchar=@returnchar+su…
create function [dbo].[fun_getbh](@char nchar(2)) returns int as begin return( case when unicode(@char) between 19968 and 40869 then( select top 1 id from( select id=1,ch=N'亅' union all select 2,N'阝' union all select 3,N'马' union all select 4,N'风' un…