Can't DROP 'something'; check that column/key exists

Discussion in 'PHP' started by wnetwork, Jan 25, 2010.

  1. #1
    I get an error:
    Can't DROP 'something'; check that column/key exists
    Code (markup):
    So is there a way to skip (continue) the DROP if the column to be deleted doesn't exist?

    ALTER TABLE config
    
      DROP COLUMN `something`,
      DROP COLUMN `something2`,
      DROP COLUMN `something3`,
      DROP COLUMN `something4`,
    ..
    ..
    ..
    so on...
    PHP:

     
    wnetwork, Jan 25, 2010 IP
  2. wnetwork

    wnetwork Greenhorn

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    Forget it.

    Mod or whoever- close this thread.
     
    wnetwork, Jan 25, 2010 IP