ms_dos

  博客园  :: 首页  :: 新随笔  ::  :: 订阅 订阅  :: 管理

2010年3月29日

摘要: select * from aselect * from bdeclare Mycursor CURSORfor select * from bopen Mycursordeclare @stuID nchar(10)declare @math smallintfetch next from Mycursorinto @stuID,@mathwhile(@@FETCH_STATUS = 0)beg... 阅读全文
posted @ 2010-03-29 12:25 ms_dos 阅读(207) 评论(0) 推荐(0)

摘要: declare @temp table ( [id] int IDENTITY(1,1), [Name] varchar(10) ) declare @tempId int,@tempName varchar(10)insert into @temp values('a') insert into @temp values('b') insert into @temp values('c') ... 阅读全文
posted @ 2010-03-29 10:19 ms_dos 阅读(441) 评论(0) 推荐(0)