[Dbix-class] Subquerys

Moritz Onken onken at houseofdesign.de
Wed Dec 27 13:50:09 GMT 2006


How do I write this query in dbix-class syntax?

DELETE FROM chat
   WHERE ( chat.ID
     NOT IN (
       SELECT chat.ID FROM chat
         ORDER BY chat.time DESC LIMIT 0,20 ))

thanks



More information about the Dbix-class mailing list