Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - max
Search - max - List
以递归分治思想,同时查找S串中的最大元和次大元。-Realize querying the max and submax number in a string S with divid and conquer.
Date : 2025-12-28 Size : 1kb User : kelsi

Alter FUNCTION [dbo].[split](@expression VarChar(max),@delimiter VarChar(30) = ' ') RETURNS @TmpTable TABLE (RefNo VarChar(max)) AS BEGIN if rtrim(isnull(@expression,'')) > '' begin declare @cxml xml set @cxml = '<x_k><![CDATA['+replace(@expression,@delimiter,']]></x_k><x_k><![CDATA[')+']]></x_k>' insert into @TmpTable select ls.row.value('.[1]','varchar(max)') as refno--, identity(int,1,1) as idno from @cxml.nodes('/x_k') as ls(row) end RETURN END GO(A SQL imitates the split function in VB to achieve a high efficiency by turning a text string into a data table.)
Date : 2025-12-28 Size : 1kb User : salonstarA
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.