943,789 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Marked Solved
  • Views: 748
  • MySQL RSS
Jul 1st, 2008
0

query

Expand Post »
How to check the duplicate Columns in a table
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sushilchandu is offline Offline
4 posts
since Jun 2008
Jul 1st, 2008
0

Re: query

MySQL Syntax (Toggle Plain Text)
  1. SELECT YourColumn, COUNT(*) TotalCount
  2. FROM YourTable
  3. GROUP BY YourColumn
  4. HAVING COUNT(*) > 1
  5. ORDER BY COUNT(*) DESC

check above code for duplicate colums in a table
Reputation Points: 12
Solved Threads: 34
Posting Whiz
sreein1986 is offline Offline
306 posts
since May 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: Stored procedure error
Next Thread in MySQL Forum Timeline: INSERT columns into rows





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC