framework/db/CDbMigration.php
public function update($table, $columns, $conditions='', $params=array())
	{
		echo "    > update $table ...";
		$time=microtime(true);
		$this->getDbConnection()->createCommand()->update($table, $columns, $conditions, $params);
		echo " done (time: ".sprintf('%.3f', microtime(true)-$time)."s)\n";
	}
public function update($table, $columns, $conditions='', $params=array())
	{
		echo "    > update $table ...";
		$time=microtime(true);
		$this->getDbConnection()->createCommand()->update($table, $columns, $conditions, $params);
		echo " done (time: ".sprintf('%.3f', microtime(true)-$time)."s)\n";
	}
public function update ( $ table , $ columns , $ conditions = '' , $ params = array ( ) ) { echo "    > update $table ..." ; $ time = microtime ( true ) ; $ this -> getDbConnection ( ) -> createCommand ( ) -> update ( $ table , $ columns , $ conditions , $ params ) ; echo " done (time: " . sprintf ( '%.3f' , microtime ( true ) - $ time ) . "s)\n" ; }
Creates and executes an UPDATE SQL statement.
The method will properly escape the column names and bind the values to be updated.
@param string $table the table to be updated.
@param array $columns the column data (name=>value) to be updated.
@param mixed $conditions the conditions that will be put in the WHERE part. Please
refer to {@link CDbCommand::where} on how to specify conditions.
@param array $params the parameters to be bound to the query.
Creates and executes an UPDATE SQL statement . The method will properly escape the column names and bind the values to be updated .