doctrine2 - Doctrine update query with LIMIT -



doctrine2 - Doctrine update query with LIMIT -

i update-query limit that:

update anytable set anycolumn = 'anyvalue' anothercolumn='anothervalue' limit 20

how possible doctrine 2.1 ?

not doctrine specific, maybe possible subquery ?

class="lang-sql prettyprint-override">update messages set test_read=1 id in ( select id ( select id messages order date_added desc limit 5, 5 ) tmp );

doctrine doctrine2 doctrine-query

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -