从网络上收刮了一些,以备后用 create function fun_getPY(@str nvarchar()) returns nvarchar() as begin declare @word nchar(),@PY nvarchar() set @PY='' begin ) --如果非汉字字符,返回原字符 and + then ( PY from ( select 'A' as PY,N'驁' as word union all select 'B',N'簿' union all sel…