本帖最後由 眼到手到哥 於 14-5-22 12:28 編輯
超級美少女 發表於 14-5-22 12:20 
弄給我,,以後我 All in 只跟你說....
繁簡轉換表.rar
(17.4 KB, 下載次數: 254)
再建一個function, 就行了~~
CREATE function [dbo].[fn_GB2BIG](
@str nvarchar(4000), --要转换的字符串
@toBIG bit --转换标志,为1, 表示 GB-->BIG,否则是 BIG-->GB
)returns nvarchar(4000)
as
begin
if @toBIG=1
select @str=replace(@str,gb,big)
from MIST_GB2BIG
where charindex(gb,@str)>0
else
select @str=replace(@str,big,gb)
from MIST_GB2BIG
where charindex(big,@str)>0
return(@str)
end
簡單吧~~~ 
蝦米~~ 你要資料庫全部轉換喔~~~
|