字符串截取和修改

declare @S1 varchar(100)
select @S1=Url from BudgetYingFu;
select Substring(Url,CHARINDEX('docid',Url)+6,5) from BudgetYingFu;

update BudgetYingFu set FlowID= Substring(Url,CHARINDEX('flowid',Url)+7,3)

posted @ 2016-12-21 10:20  zyxh  阅读(349)  评论(0编辑  收藏  举报