This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/includes/kohana/modules/database/guide/database/query.md
2011-01-14 01:49:56 +11:00

592 B

Making Queries

There are two different ways to make queries. The simplest way to make a query is to use [Database_Query], via [DB::query], to manually create queries. These queries are called prepared statements and allow you to set query parameters which are automatically escaped. The second way to make a query is by building the query using method calls. This is done using the query builder.

[!!] All queries are run using the execute method, which accepts a [Database] object or instance name. See [Database_Query::execute] for more information.