~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/queries.rst

  • Committer: Stewart Smith
  • Date: 2011-01-21 01:09:12 UTC
  • mfrom: (2099 staging)
  • mto: (2099.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2100.
  • Revision ID: stewart@flamingspork.com-20110121010912-x5ogi8rm08nortxp
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
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