日期:2014-05-17 浏览次数:20555 次
create procedure test
@XML varchar(max) ,
@xx varchar(20),
……,
……
as
Declare @sql varchar(max)
set @sql='insert into tb(XX,……,xmls)
select '''+@xx+''','''+……+……''',''','''+@XML+''''
exec(@sq)
DECLARE @TMPXML VARCHAR(MAX)
SET @TMPXML =replace(@XML,'''','tszf')
UODATE TB SET XML=REPLACE (XML,'tszf','''')