摘要:
相同姓名的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 阅读全文