~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/update.rst

  • Committer: Lee Bieber
  • Date: 2011-02-16 03:48:03 UTC
  • mfrom: (2165.2.6 trunk-docs-fixes)
  • mto: This revision was merged to the branch mainline in revision 2173.
  • Revision ID: kalebral@gmail.com-20110216034803-bknjc8l6i4e3vyka
Merge Andrew - 718657: Several errors in Date/Time docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
A type query:
7
7
 
8
 
UPDATE TABLE_1 SET a="1" WHERE <condition>;
 
8
.. code-block:: mysql
 
9
 
 
10
   UPDATE TABLE_1 SET a="1" WHERE <condition>;
9
11
 
10
12
Multi-table delete and multi-table update code was removed from Drizzle.
11
13
 
12
 
Multi-update/delete can be accomplished through subqueries. For example: ::
 
14
Multi-update/delete can be accomplished through subqueries. For example:
 
15
 
 
16
.. code-block:: mysql
13
17
 
14
18
        UPDATE tableX SET tableXfield = (SELECT MAX(tableY.tableYfield) FROM tableY WHERE tableX.tableXfield = tableY.tableYfield)
15
19
 
16
 
In other database frameworks, multi-update and multi-delete are used to change information in *one* table, but the rows to change are determined by using more than one table. In that case, subqueries work to address the issue of changing information in one table based on information in more than one table.
 
 
b'\\ No newline at end of file'
 
20
In other database frameworks, multi-update and multi-delete are used to change information in *one* table, but the rows to change are determined by using more than one table. In that case, subqueries work to address the issue of changing information in one table based on information in more than one table.