mssql使用輸出參數的存儲過程實例如下:
create proc proc_test ( @test1 int output ) as print @test1 set @test1=1 print @test1 go declare @test1 int set @test1=456 exec proc_test @test1 output
結果:456
1
apply有兩種形式: cross apply 和 outer apply 先看看語法: <left_table_expression> {cross|outer} apply <right_table_expression> 再讓
--第一步,開啓高級功能 EXEC sp_configure 'show advanced options', 1; GO RECONFIGURE; GO EXEC sp_configure 'xp_cmdshell',1 RE