~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/alter_schema.rst

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ALTER SCHEMA
 
2
============
 
3
 
 
4
ALTER SCHEMA changes the definition of a schema.
 
5
 
 
6
You must own the schema to use ALTER SCHEMA. To rename a schema you
 
7
must also have the CREATE privilege for the database. To alter the
 
8
owner, you must also be a direct or indirect member of the new owning
 
9
role, and you must have the CREATE privilege for the database:
 
10
 
 
11
.. code-block:: mysql
 
12
 
 
13
        ALTER SCHEMA name RENAME TO new_name
 
14
        ALTER SCHEMA name OWNER TO new_owner
 
15
 
 
16
name
 
17
 
 
18
    The name of an existing schema. 
 
19
 
 
20
new_name
 
21
 
 
22
    The new name of the schema.
 
23
 
 
24
new_owner
 
25
 
 
26
    The new owner of the schema. 
 
27
 
 
28
 
 
29
.. seealso::
 
30
 
 
31
   :doc:`create_schema` and :doc:`drop_schema`