Cake 1.2:
$this->Model->deleteAll(array('Model.id' => array(1, 2, 3)));
On Oct 13, 1:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> hey everybody , got a question ...
>
> How can you delete in one sql query multiple rows from a table,
> something like "delete from table where id in (1, 2, 3)"
> Cuz it would be quite crappy if you have 100 000 rows to delete from
> one single table, and fo rthis you owuld have to send 100 000 queries
> to the sql server ...
>
> Thx a lot!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---