Deleting Selective Rows from Table

  • I want to delete say 500 select rows in a table. There is a unique column called "pacode". I would like to do something like:

    Delete TABLE_NAME where pacode= 'a' , 'b' , 'c'...etc

    or

    pacode is one of: a, b, c, d....etc

    I could not find correct syntax for SQL 6.5

    Thanks For your continued Help.


    Thanks For your continued Help.

  • Try:

    DELETE TABLE_NAME

    WHERE pacode IN ('a','b','c','d')

    Be great!

    Michael


    Be great!
    Michael

  • delete

    ...

    where code = 'a'

    or code='b'

    or code='c'

    works too.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply