类似如下 stu (name,age,gender,no) select s1.name,s1.age,s1.gender,s1.no , case when s2.name =s1.name then '' else ‘name’ end , case when s2.age =s1.age then '' else ‘age’ end , case when s2.gender=s1.gender then '' else ‘gender' end from stu s1 ,stu s2 where s1.no = s2.no