Activity Stream
48,167 MEMBERS
6821 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 8 of 8
  1.     
    #1
    Banned
    Website's:
    WarezRelease.org ThatHosting.co

    Default Dupe sql records

    mind the scribbles in the SS, i iz not good freehand btw



    how to remove dupes, iv fixed the mod tht did this
    Chris2k Reviewed by Chris2k on . Dupe sql records mind the scribbles in the SS, i iz not good freehand btw http://i.lulzimg.com/6fea8e0350.png how to remove dupes, iv fixed the mod tht did this Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    KWWHunction.com
    Hit the red delete button

  4.     
    #3
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    fucking genious bro i no0t doing tht as theirrs lijjke 150+ records

  5.     
    #4
    Respected Member
    Then you have to give us the table layout so we can give you the correct command or script.

  6.     
    #5
    Retired NinJa
    Website's:
    loledhard.com
    FIRST OF ALL BACKUP UR DB

    well am not sure, I thought about
    delete table_name where id not in (select distinct id from table_name)

    but then i thought it wont distinct out "sitename" field
    let me think someway out...if I couldnt do it via query we would design a php code to do it which would make it easy tbh



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

  7.     
    #6
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    done it, luckily i backed upv da table 18 hours ago

  8.     
    #7
    Respected Member
    Quote Originally Posted by humour View Post
    FIRST OF ALL BACKUP UR DB

    well am not sure, I thought about
    delete table_name where id not in (select distinct id from table_name)

    but then i thought it wont distinct out "sitename" field
    let me think someway out...if I couldnt do it via query we would design a php code to do it which would make it easy tbh

    You can't delete from a table in a select from the same table. Mysql won't allow it.

    You should never offer a novice mysql commands without knowing the exact table and field names involved in the command.......

    Especially ones that you are not sure and have not tested on your test table!!!!!!!!!!!

  9.     
    #8
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    1. Backup the database (in case any problem occurs, though we would be already backing up the database in this way too)

    2. Rename the table to old_backup (Dont forget to keep your site offline for the timebeing)

    2. Open PHPMYADMIN --> Select the table and execute this query:

    PHP Code: 
    CREATE TABLE `original_table_name_here` as SELECT FROM `renamed_nameWHERE 1 GROUP BY `url
    Replace original_table_name_here with the old table name you had and renamed_name to the name you just renamed above

    I have tested doing same with DLE script to remove fucking duplicate posts. And it did worked successfully.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Understanding MX Records - I need help
    By water-works in forum Webmaster Discussion
    Replies: 2
    Last Post: 21st Aug 2012, 07:23 PM
  2. How/where to get unlimited or a lot of A Host records?
    By LEVAC109 in forum Webmaster Resources
    Replies: 5
    Last Post: 30th Apr 2012, 10:15 AM
  3. Understanding MX records
    By Albert.Nawaro in forum Tutorials and Guides
    Replies: 0
    Last Post: 9th Feb 2012, 11:26 AM
  4. Please help me changing MX Records
    By Jason_weds_Freddy in forum Technical Help Desk Support
    Replies: 6
    Last Post: 1st Apr 2011, 08:09 PM
  5. A records
    By GoPantheoN in forum Technical Help Desk Support
    Replies: 2
    Last Post: 13th Aug 2010, 01:58 PM

Tags for this Thread

BE SOCIAL