remove rows that do not contain

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TVining
    New Member
    • Dec 2007
    • 26

    remove rows that do not contain

    I want to remove all rows that do not contain the word "FRENCHFRY" in them.
    I have tried a few things, with varied results, but nothing consistent.

    Tony
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    You can write your query as
    [CODE=mysql]DELETE FROM table_name WHERE column1 NOT LIKE '%FRENCHFRY%'[/CODE]

    Comment

    Working...