Notice
Recent Posts
Recent Comments
SNOWFLAKES DRAWING PAPER
[SQL] MS-SQL PROCEDURE OUTPUT TEST 본문
PROCEDURE OUTPUT TEST
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
-- uSP_test1
Alter PROCEDURE uSP_test1
as
declare @test varchar(100)
execute uSP_test2 @test output
select @test
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
-- declare @test as varchar(100)
-- execute uSP_test2 @test output
--
select @test
-- uSP_test1
Alter PROCEDURE uSP_test2
(
@test varchar(100) OUTPUT
)
as
select @test = max(mem_No) from ssr_member
--return @test
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
'개발 > Oracle/SQL/ERD' 카테고리의 다른 글
[SQL] MySQL Stored Procedure (0) | 2009.04.18 |
---|---|
[SQL] MySQL 기본적인 명령어 (0) | 2009.04.18 |
[ERD] MySQL Workbench를 이용한 ER diagram 작성 및 sql import/exrpot (0) | 2009.04.15 |
[SQL] InnoDB 와 MyISAM (0) | 2009.04.15 |
[SQL] @dd varchar(2) 에서 3자릿수가 될경우 테스트 (0) | 2008.09.06 |
Comments