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

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

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