悬赏园豆:50
[已关闭问题]
关闭于 2008-09-02 14:44
<P>DECLARE @NewPath NVARCHAR(4000)<BR>SET @NewPath='1/20/44'</P>
<P>DECLARE @PCF TABLE(PKID int IDENTITY(1,1), ClassificationID int)<BR>--插入要更新的数据</P>
<P>DECLARE @strSql NVARCHAR(4000)<BR>SET @strSql=' (SELECT ClassificationID FROM Classification WHERE CHARINDEX(<A href="mailto:'''+'/'+@NewPath+'/'+''',''/''">'''+'/'+@NewPath+'/'+''',''/''</A>+ PriCfPath+''/'') > 0)'</P>
<P>INSERT INTO @PCF select * from (EXEC(@strSql)) a<BR></P>
<P>如何 执行EXEC(@strSql)并把结果insert到@PCF?</P>
<P>请大虾指教</P>
<P> </P>
<P> </P>