cursor 예제
declare @idx int declare @mIdx int declare @cIdx int set @idx = 0 set nocount on create table #Test(idx int, memberIdx int, collageIdx int, regDate datetime, mID varchar(30), mPwd varchar(30)) declare cur_Test Cursor FOR select memberIdx, collageIdx from memberExcel as A inner join lectureExcel as B on A.idx = B.memberExcelIDx where excelDefaultIdx = 1 group by memberIdx, collageIdx open cur_Tes..
Programming/ms-sql
2011. 2. 18. 18:19