sql语句查询去除重复语句的结果集

Posted 程序咖啡

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql语句查询去除重复语句的结果集相关的知识,希望对你有一定的参考价值。

返回operation表中time列的唯一值

语句1

select  time  from  operation   group  by  time   having count(time) > 1

语句2

select distinct time from operation;

以上是关于sql语句查询去除重复语句的结果集的主要内容,如果未能解决你的问题,请参考以下文章