摘要: 相同姓名的n行记录合并在一个字段,按不重复姓名输出Sql Codedeclare @t table (t varchar(10) ,n varchar(8))insert into @tselect '2012/7/20', '张三' union allselect '2012/7/21' ,'张三' union allselect '2012/7/20' ,'李四' union allselect '2012/7/20', '王二' union allselect 阅读全文
posted @ 2012-10-11 16:43 爱的华尔兹 阅读(1076) 评论(0) 推荐(0) 编辑