草庵书生

冷眼面对一切,低调!才是最牛B的炫耀!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年8月7日

摘要: create table tb(id int)insert tb select 1 union select 2godeclare @tb nvarchar(100)set @tb='tb'exec('declare cur cursor for select id from '+@tb+' where id<10')open curdeclare @id intfetch next from cur into @idwhile @@fetch_status=0begin print @id fetch next from cur into 阅读全文

posted @ 2012-08-07 16:07 草庵书生 阅读(162) 评论(0) 推荐(0) 编辑