How do I add a limit to update-query in Zend Framework?

后端 未结 2 1137
别跟我提以往
别跟我提以往 2021-01-14 10:25

How do I add the LIMIT 1 clause to an update when using Zend Framework?

I\'m kind of forced not to use Zend_Db_Table_Abstract::update() since it execute

2条回答
  •  死守一世寂寞
    2021-01-14 11:06

    Why would you want to do that??? If you want to update a single record you should use the records' primary key and use an

    UPDATE  SET field=, ... WHERE key = ;
    
    
    

    query.

    提交回复
    热议问题