framework/db/schema/CDbCommandBuilder.php
public function createSqlCommand($sql,$params=array())
	{
		$command=$this->_connection->createCommand($sql);
		$this->bindValues($command,$params);
		return $command;
	}
public function createSqlCommand($sql,$params=array())
	{
		$command=$this->_connection->createCommand($sql);
		$this->bindValues($command,$params);
		return $command;
	}
public function createSqlCommand ( $ sql , $ params = array ( ) ) { $ command = $ this -> _connection -> createCommand ( $ sql ) ; $ this -> bindValues ( $ command , $ params ) ; return $ command ; }
Creates a command based on a given SQL statement.
@param string $sql the explicitly specified SQL statement
@param array $params parameters that will be bound to the SQL statement
@return CDbCommand the created command
Creates a command based on a given SQL statement .