摘要: with t as(select 'Charles' parent, 'William' child unionselect 'Charles', 'Harry' unionselect 'Anne', 'Peter' unionselect 'Anne', 'Zara' unionselect ... 阅读全文
posted @ 2014-06-19 18:05 振乾 阅读(18081) 评论(2) 推荐(0) 编辑
摘要: IF OBJECT_ID('tb') IS NOT NULL DROP TABLE tbcreate table tb(id varchar(3) , pid varchar(3) , name varchar(10))insert into tb values('001' , null ,... 阅读全文
posted @ 2014-06-19 17:43 振乾 阅读(522) 评论(0) 推荐(0) 编辑