MySQL WHERE: how to write "!=" or "not equals"?

Posttwo picture Posttwo · Jul 10, 2012 · Viewed 132.1k times · Source

I need to do this

DELETE FROM konta WHERE taken != ''

But != doesn't exist in mysql. Anyone know how to do this?

Answer

RolandoMySQLDBA picture RolandoMySQLDBA · Jul 10, 2012
DELETE FROM konta WHERE taken <> '';