摘要: set @depts = @depts + ','while charindex(',',@depts) > 0 Begin set @dept=left(@depts,charindex(',',@depts)-1) insert into @DEPTTAB(deptid) select @dept set @depts = substring(@depts,charindex(','... 阅读全文
posted @ 2010-02-04 14:46 qinghao 阅读(120) 评论(0) 推荐(0) 编辑

Copyright © 2009 qinghao Powered by: 博客园