Deleting Multiple Rows with Zend DB Table Problem

Posted by davykiash on Stack Overflow See other posts from Stack Overflow or by davykiash
Published on 2010-04-08T05:34:06Z Indexed on 2010/04/08 5:43 UTC
Read the original article Hit count: 466

Filed under:
|

I have this data in my db

Col1    Col2
DA      Data1
DA      Data2 
DA      Data3 
DA      Data4
DA      Data5 

I would like to delete all the values WHERE col1 = DA using my Zend DB Table adapter. The code below does not seem to work for multiple rows

public function delete($key)
    {
        $this->delete('Col1 = "'.$key.'"');
    }

How can I adjust it so that I can delete multiple rows?

© Stack Overflow or respective owner

Related posts about zend-db-table

Related posts about zend-db