Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

select where duplicate mysql

SELECT 
    col1, COUNT(col1),
    col2, COUNT(col2)
FROM
    table_name
GROUP BY 
    col1, 
    col2
HAVING 
       (COUNT(col1) > 1) AND 
       (COUNT(col2) > 1);
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #select #duplicate #mysql
ADD COMMENT
Topic
Name
9+2 =