简体   繁体   English

您如何 go 关于编写此 sql 查询

[英]how would you go about writing this sql query

Write a query to return records where the combination of column1 and column2 (in the table1) appear more than once编写查询以返回 column1 和 column2 的组合(在 table1 中)出现多次的记录

select column1, column2
from myTable
group by column1, column2
having count(*) > 1;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM