Thursday, April 20, 2017

Retrieve Duplicate Values from an alphanumeric column in mysql database

To retrieve duplicate values and its count from an alphanumeric column in mysql database
you can use the following query
SELECT `column_name`, COUNT(*) c FROM `table_name` GROUP BY `column_name` HAVING c > 1;

No comments:

Post a Comment

How to get Logged In Username in Wordpress or Woocommerce

It is really easy to get the logged-in user’s information in Wordpress or Woocommerce. In this article we will show you how to get the relat...