2016-10-14 17:49发布
想查询table表中三个字段(field1,field2,field3)去重的记录个数?应该怎么写查询语句呢?
select * from table_name where (field1 <> field2 AND field2 <> field3 AND field1 <> field3)
field1
field2
field3
最多设置5个标签!
select * from table_name where (
field1
<>field2
ANDfield2
<>field3
ANDfield1
<>field3
)一周热门 更多>