~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/queries.rst

  • Committer: Brian Aker
  • Date: 2010-12-08 20:27:54 UTC
  • mfrom: (1945.3.9 drizzle)
  • Revision ID: brian@tangent.org-20101208202754-vlmv7nafvktezfe6
Merge Marisa, docs changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Executing Queries
 
1
Executing Queries 
2
2
=================
3
3
 
4
 
To return from values from Drizzled you most commonly use the SELECT
5
 
command. An example of this would be:
6
 
 
7
 
SELECT * FROM table_1;
8
 
 
9
 
 
 
4
Queries retrieve data from a database based on specific criteria. They
 
5
are performed with the declarative SELECT statement, which has no
 
6
persistent effects on the database. SELECT simply retrieves data from
 
7
one or more tables, or expressions.
 
8
 
 
9
A query includes a list of columns to be included in a result set; an example of this would be:  ::
 
10
 
 
11
        SELECT * FROM table_1;
 
12
 
 
13
SELECT * FROM is an example of using SELECT with a clause. Other keywords and clauses include:
 
14
 
 
15
* The FROM clause
 
16
* The WHERE clause
 
17
* The GROUP BY clause
 
18
* The HAVING clause
 
19
* The ORDER BY clause
 
 
b'\\ No newline at end of file'