mysql - Fetch duplicate rows with SQL -


i trying develope query fetch rows having duplicate values, need fetch both records i.e duplicating record , real one, example

table

id  keyword ------------------- 1   apple 2   orange 3   apple 4   grape 5   banana 6   grape 

the query result should be:

id  keyword ------------------- 1   apple 3   apple 4   grape 6   grape 

please me!

query:

select *  table keyword in (select keyword  table group keyword  having count(keyword)>1) 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -