~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/queries.rst

  • Committer: Brian Aker
  • Date: 2011-01-12 06:45:23 UTC
  • mto: (2073.1.4 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: brian@tangent.org-20110112064523-rqhptaqbph22qmj1
RemoveĀ customĀ error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Executing Queries
 
1
Executing Queries 
2
2
=================
3
3
 
4
4
Queries retrieve data from a database based on specific criteria. They
6
6
persistent effects on the database. SELECT simply retrieves data from
7
7
one or more tables, or expressions.
8
8
 
9
 
A query includes a list of columns to be included in a result set; an example of this would be:
10
 
 
11
 
.. code-block:: mysql
 
9
A query includes a list of columns to be included in a result set; an example of this would be:  ::
12
10
 
13
11
        SELECT * FROM table_name;
14
12
 
26
24
   orderby
27
25
   join
28
26
 
29
 
For example:
30
 
 
31
 
.. code-block:: mysql
 
27
For example, ::
32
28
 
33
29
        SELECT first_column_name, second_column_name
34
30
        FROM table_name
38
34
 
39
35
The table name that follows the keyword FROM specifies the table that will be queried to retrieve the desired results.
40
36
 
41
 
The WHERE clause (optional) specifies the data values or rows to be returned or displayed, based on the criteria described after the keyword WHERE.
 
37
The WHERE clause (optional) specifies the data values or rows to be returned or displayed, based on the criteria described after the keyword WHERE.
 
 
b'\\ No newline at end of file'