Prado\Data\TDbCommand::execute PHP Метод

execute() публичный Метод

This method is meant only for executing non-query SQL statement. No result set will be returned.
public execute ( ) : integer
Результат integer number of rows affected by the execution.
    public function execute()
    {
        try {
            // Do not trace because it will remain even in Performance mode
            // Prado::trace('Execute Command: '.$this->getDebugStatementText(), 'Prado\Data');
            if ($this->_statement instanceof PDOStatement) {
                $this->_statement->execute();
                return $this->_statement->rowCount();
            } else {
                return $this->getConnection()->getPdoInstance()->exec($this->getText());
            }
        } catch (Exception $e) {
            throw new TDbException('dbcommand_execute_failed', $e->getMessage(), $this->getDebugStatementText());
        }
    }