<1>create:
ALTER proc [dbo].[common_proc]
@sql1 varchar(5000),
@sql2 varchar(5000) OUTPUT
as begin
set @[email protected]+‘‘;
end;
<2>call:
exec [dbo].[common_proc] @sql , @midsql OUTPUT
set @sql = (select @midsql)
时间: 2024-10-20 06:41:20
<1>create:
ALTER proc [dbo].[common_proc]
@sql1 varchar(5000),
@sql2 varchar(5000) OUTPUT
as begin
set @[email protected]+‘‘;
end;
<2>call:
exec [dbo].[common_proc] @sql , @midsql OUTPUT
set @sql = (select @midsql)