我是新手,求一条SQL语句或方法也可以
天壹神水 2006-08-15 10:32:57 declare @t2 table(zw char(2), mc char(4), lx char(1))
insert into @t2 select '02','黑马','3'
union all select '02','白马','1'
union all select '04','皇马','1'
union all select '05','斑马','2'
想求一条 select 语句可以得到
'02','黑马','3'
'04','皇马','1'
'05','斑马','2'
或
'02','白马','1'
'04','皇马','1'
'05','斑马','2'
的结果,应该怎样写?就是去掉重复的zw号码