Author:水如烟
USE
[
LzmTW
]
GO
-- ================================================================================
-- Author:LzmTW
-- Create date:20080111
-- Description:返回与条件相匹配的所有匹配字符串
-- ================================================================================
CREATE FUNCTION [ String ] . [ FindAll ]
(
@Value nvarchar ( max )
, @Search nvarchar ( max )
, @IsVagueMode bit = 0
)
RETURNS
@Table TABLE
(
[ Catch ] nvarchar ( max )
)
AS
BEGIN
INSERT INTO @Table
SELECT [ Catch ]
FROM [ String ] . [ IndexArray ] (
@Value
, @Search
, @IsVagueMode )
RETURN
END
GO
-- ================================================================================
-- Author:LzmTW
-- Create date:20080111
-- Description:返回与条件相匹配的所有匹配字符串
-- ================================================================================
CREATE FUNCTION [ String ] . [ FindAll ]
(
@Value nvarchar ( max )
, @Search nvarchar ( max )
, @IsVagueMode bit = 0
)
RETURNS
@Table TABLE
(
[ Catch ] nvarchar ( max )
)
AS
BEGIN
INSERT INTO @Table
SELECT [ Catch ]
FROM [ String ] . [ IndexArray ] (
@Value
, @Search
, @IsVagueMode )
RETURN
END