Need help with with a query

Discussion in 'Databases' started by maney, Jun 6, 2007.

  1. #1
    Hi all,

    I'm looking for some help with an SQL query I want to make. I know as much about SQL as I do about golf so I don't really know where to start :D

    I've been neglecting my directory a little and as a result there are about 350 pending spam submissions. I'd like to run a query which will drop all of the things (fields?) in the table PLD_LINK which have their STATUS set as 1 (1 means pending, 2 means approved, I think).

    Could anybody help me please?

    Cheers,
    Dan
     
    maney, Jun 6, 2007 IP
  2. turiel

    turiel Peon

    Messages:
    148
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    DELETE from pld_link WHERE status=1

    You use the word "I think" in your description which is never a good thing when talking about deleting things, so make a backup beforehand, and verify that status=1 means what you think it does!
     
    turiel, Jun 6, 2007 IP
    maney likes this.
  3. maney

    maney Active Member

    Messages:
    1,130
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Worked like a charm, your a star mate :D
     
    maney, Jun 6, 2007 IP