2011年1月24日
摘要: --变量声明默认是Null Valuedeclare @groupid int if(@groupid is null) print 'group id is null' 阅读全文
posted @ 2011-01-24 15:06 tim123 阅读(723) 评论(0) 推荐(0) 编辑
摘要: --开始事务BEGIN TRAN--不显示计数信息SET NOCOUNT ONdeclare @companyid intdeclare @personid intdeclare OuterCursor cursorfor --tim select personid,companyid from company where employeeid in(2000000043)open OuterCursor fetch next from OuterCursor into @personid,@companyid while(@@fetch_status=0) begin -- do work 阅读全文
posted @ 2011-01-24 15:05 tim123 阅读(225) 评论(0) 推荐(0) 编辑