Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Posts
    122
    Plugin Contributions
    0

    Default Help with database problem.

    I Have a problem with an import routine I have setup for my products.

    For some reason it has placed lots of empty rows in the products_description table and products_to_categories table.

    Before I investigate this I need to delete the empty rows.

    Can someone help me with the code required to do this, as nothing I have tried so far seems to work.

    This is what I want to do.

    Find all the records in the products_description table with a blank products_description feild. Pickup the product id. Delete the row with that product ID in the products_to_categories table and delete it. Then delete the blank row with same id in the products_description table.

    I have tried this with mysql and mysql administrator, but there are so many rows it just locks up. 848000 rows to be exact.

    Regards
    Laurie

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help with database problem.

    How did you inject that many empty rows?

    Did you not backup before doing this?
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Help! with database problem
    By enquirer66 in forum General Questions
    Replies: 8
    Last Post: 17 Dec 2009, 03:10 PM
  2. Problem with Database
    By hellsanjeev in forum Installing on a Windows Server
    Replies: 2
    Last Post: 9 Oct 2009, 11:31 AM
  3. Major problem with Database
    By philip56 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 21 May 2008, 10:20 PM
  4. Problem with database upgrade v1.3.7 to 1.3.8
    By taz79 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 14
    Last Post: 2 Apr 2008, 09:57 PM
  5. Problem with database
    By rxalex in forum General Questions
    Replies: 2
    Last Post: 25 Jun 2006, 05:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg