SQL_函数比较两个字符串的相似度

USE [SooilSemanticsDB_ImportData]
GO
/****** Object:  UserDefinedFunction [dbo].[get_semblance_By_2words]    Script Date: 2015/6/18 15:44:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create   function [dbo].[get_semblance_By_2words] 
( 
@word1 varchar(500), 
@word2 varchar(500)   
) 
returns nvarchar(4000) 
as 
begin 
declare @re int 
declare @maxLenth int 
declare @i int,@l int 
declare @tb1 table(child varchar(500)) 
declare @tb2 table(child varchar(500)) 
set @i=1 
set @l=1
set @maxLenth=len(@word1) 
if len(@word1)

你可能感兴趣的:(SQL_函数比较两个字符串的相似度)