摘要: if exists(select 1 from sysobjects where name='char_index')drop function char_index create function char_index(@string varchar(8000),@char varchar(10),@index smallint)--@string:待查找字符串,@index:查找位置returns smallintasbegin declare @i tinyint,--当前找到第@i个 @position tinyint--所在位置 set @position=1; se 阅读全文
posted @ 2011-12-29 18:14 自由精灵 阅读(2044) 评论(0) 推荐(0) 编辑