如何用sql语句查询表中某列不重复的所有项

如题所述

  SELECT *
  FROM tablea
  WHERE (number NOT IN
  (SELECT ta.number
  FROM tablea AS ta INNER JOIN
   tablea AS tb ON ta.number = tb.number AND ta.id tb.id))
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答