API16:JDatabaseQuery/select

From Joomla! Documentation

Jump to: navigation, search

[Edit Descripton]

Description:JDatabaseQuery/select

Contents

Syntax

select($columns)
Parameter Name Default Value Description
$columns A string or an array of field names

Defined in

libraries/joomla/database/databasequery.php

Importing

jimport( 'joomla.database.databasequery' );

Source Body

public function select($columns)
{
        $this->_type = 'select';
        if (is_null($this->_select)) {
                $this->_select = new JDatabaseQueryElement('SELECT', $columns);
        } else {
                $this->_select->append($columns);
        }
 
        return $this;
}

[Edit See Also] SeeAlso:JDatabaseQuery/select

Examples


Personal tools