JDatabaseQuery: Difference between revisions
From Joomla! Documentation
Layout updates |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
=={{JVer|11.1}} JDatabaseQuery== | |||
===Description=== | |||
{{ | |||
=== | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
!Visibility | |||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
|[[JDatabaseQuery::__toString | |public | ||
|[[API17:JDatabaseQuery::__toString|__toString]] | |||
|Magic function to convert the query to a string. | |Magic function to convert the query to a string. | ||
|- | |- | ||
|[[JDatabaseQuery::clear | |public | ||
|[[API17:JDatabaseQuery::auto_increment|auto_increment]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::castToChar|castToChar]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::charLength|charLength]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::clear|clear]] | |||
|Clear data from the query or a specific clause of the query. | |Clear data from the query or a specific clause of the query. | ||
|- | |- | ||
|[[JDatabaseQuery::delete | |public | ||
| | |[[API17:JDatabaseQuery::concat|concat]] | ||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::delete|delete]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::dropIfExists|dropIfExists]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::fields|fields]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::from|from]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::group|group]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::having|having]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::innerJoin|innerJoin]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::insert|insert]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::insertInto|insertInto]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::join|join]] | |||
| | |||
|- | |||
|public | |||
|[[API17:JDatabaseQuery::leftJoin|leftJoin]] | |||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::length|length]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::lock|lock]] | ||
|Method to lock the database table for writing. | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::now|now]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::order|order]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::outerJoin|outerJoin]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::renameTable|renameTable]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::rightJoin|rightJoin]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::select|select]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::set|set]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::showTables|showTables]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::unlock|unlock]] | ||
|Method to unlock the database table for writing. | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::update|update]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery:: | |public | ||
| | |[[API17:JDatabaseQuery::values|values]] | ||
| | |||
|- | |- | ||
|[[JDatabaseQuery::where | |public | ||
| | |[[API17:JDatabaseQuery::where|where]] | ||
| | |||
|- | |- | ||
|} | |} | ||
* '''Defined in''' libraries/joomla/database/databasequery.php | |||
* '''Extended by''' | |||
** [[API17:JDatabaseQueryMySQL|JDatabaseQueryMySQL]] | |||
** [[API17:JDatabaseQueryMySQLi|JDatabaseQueryMySQLi]] | |||
** [[API17:JDatabaseQuerySQLAzure|JDatabaseQuerySQLAzure]] | |||
** [[API17:JDatabaseQuerySQLSrv|JDatabaseQuerySQLSrv]] | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.database.databasequery' );</source> | <source lang="php">jimport( 'joomla.database.databasequery' );</source> | ||
===See also=== | ===See also=== | ||
* JDatabaseQuery source code | * {{JVer|11.1}} '''JDatabaseQuery source code''' on [[jplatform:database/databasequery.php|BitBucket]] | ||
* [[ | * {{JVer|11.1}} Subpackage [[API17:Subpackage Database|Database]] | ||
* [[API17:JDatabaseQuery|Other versions of JDatabaseQuery]] | |||
===User contributed notes=== | |||
===Examples=== | === Code Examples === | ||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabaseQuery | category=JDatabaseQuery | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude> | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 02:42, 25 March 2017
JDatabaseQuery
Description
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __toString | Magic function to convert the query to a string. |
| public | auto_increment | |
| public | castToChar | |
| public | charLength | |
| public | clear | Clear data from the query or a specific clause of the query. |
| public | concat | |
| public | delete | |
| public | dropIfExists | |
| public | fields | |
| public | from | |
| public | group | |
| public | having | |
| public | innerJoin | |
| public | insert | |
| public | insertInto | |
| public | join | |
| public | leftJoin | |
| public | length | |
| public | lock | Method to lock the database table for writing. |
| public | now | |
| public | order | |
| public | outerJoin | |
| public | renameTable | |
| public | rightJoin | |
| public | select | |
| public | set | |
| public | showTables | |
| public | unlock | Method to unlock the database table for writing. |
| public | update | |
| public | values | |
| public | where |
- Defined in libraries/joomla/database/databasequery.php
- Extended by
Importing
jimport( 'joomla.database.databasequery' );
See also
JDatabaseQuery source code on BitBucket
Subpackage Database- Other versions of JDatabaseQuery
User contributed notes
Code Examples