在将 varchar 值 'select' 转换成数据类型 int 时失败。
set @Sqlquery='select' + @RowCount+'=count(*) from '+@From+' where '+@WhereStr
exec sp_executesql @Sqlquery,N'@RowCount int output',@RowCount output
set @Sqlquery='select * from ('+
'select,
a.BOEPCode,
a.ProjectName,
a.CustomerName,
k.OSID AS OSCode,
k.ISID AS ISCOde,
k.TradeManagerID,
e.SalesTypeName,
在数据库里编译通过,一运行就报类型转换错误,麻烦各位帮忙看看是存储过程写的有问题吗?