2010年3月5日
摘要: 在很多编程语言中都有 for循环这样的东西。在数据库里面 替代他是 游标 但是游标使用起来是相当耗费资源的,今天看见一个CTE尝试了下他的用法create table employewhere(id int identity(1,1),[name] varchar(10),[value] varchar(10),[ttime] int )insert employewhereselect '张三',2,1union allselect '张三',2,2union all select '张三',2,3union all select '张 阅读全文
posted @ 2010-03-05 11:46 叮叮猫的编程世界 阅读(388) 评论(0) 推荐(0) 编辑