Zend Framework: How to subtract amount from database table field ?

Posted by NAVEED on Stack Overflow See other posts from Stack Overflow or by NAVEED
Published on 2010-05-20T10:55:54Z Indexed on 2010/05/20 11:00 UTC
Read the original article Hit count: 241

Filed under:
|
|
|
|

I want to subtract a amount from a table's field in Zend Framework. I can run it with SQL using following query:

UPDATE `Person` SET credit=credit-50 where id=1

But how to write above SQL query in Zend Framework?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about database