1
내 쿼리를 사용하여이 Zend_Db에 코드를 작성하는 방법을Zend 프레임 워크에서 쿼리를 작성하는 방법은 무엇입니까?
UPDATE clms_data
SET product_price= Product_price+ current _Price where id = 440;
입니다.
내 쿼리를 사용하여이 Zend_Db에 코드를 작성하는 방법을Zend 프레임 워크에서 쿼리를 작성하는 방법은 무엇입니까?
UPDATE clms_data
SET product_price= Product_price+ current _Price where id = 440;
입니다.
$db = Zend_Db::factory('Pdo_Mysql', $dbConnect);
$data = array('Product_price' => new Zend_Db_Expr('Product_price+current_Price'));
$db->update('clms_data', $data, 'id = 440');
$ dbConnect가 연결 배열
입니다