[求助]存储过程动态sql问题
<P>我以前的存储过程,是用sql server做的,如下: </P><P> declare @CaptionName varchar(48)<BR>declare @EligibilityID varchar(48)</P>
<P>-- Set @SQLGetInfo=N'select @A=sailorName,@B=eligibilityIDfrom SailorAndShipNow<BR>-- where shipID =' <a href="mailto:+''''+@ShipId+''''+N'" target="_blank" >+''''+@ShipId+''''+N'</A> and place=''000'''<BR>--Exec Sp_ExecuteSql @SQLGetInfo,N'@A varchar(20) output,@B varchar(20) output', <BR>-- @CaptionName OutPut,@EligibilityID output</P>
<P>而Sybase中没有对应的Sp_ExecuteSql ,我想从执行的sql中取出两个值付给变量,我应该怎么办,在线等,急救</P> 至少要建一个吧
页:
[1]