摘要: CREATE FUNCTION StrComp(@Str1 VARCHAR(50),@Str2 VARCHAR(50))RETURNS INTEGERASBEGINDECLARE @i INTEGERDECLARE @y INTSET @i=0SET @y=1DECLARE @iLen INTSET @iLen = LEN(LTRIM(RTRIM(@Str1)))IF LEN(LTRIM(RTRIM(@Str1))) < LEN(LTRIM(RTRIM(@Str2)))SET @iLen = LEN(LTRIM(RTRIM(@Str2)))WHILE (@i < @iLen)BEG 阅读全文
posted @ 2012-12-10 10:53 一千零一夜 阅读(263) 评论(0) 推荐(0) 编辑