3
$table->delete($query)
을 수행 할 때 영향을받은 행 수를 확인한 후에 영향을받은 행 수를 반환합니까?Zend_DB_table의 영향을받는 행을 얻는 방법?
$table->delete($query)
을 수행 할 때 영향을받은 행 수를 확인한 후에 영향을받은 행 수를 반환합니까?Zend_DB_table의 영향을받는 행을 얻는 방법?
정답은 :
$result = $db->query($sql);
$affectedRows = $result->rowCount();