~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/alter_schema.rst

  • Committer: Lee Bieber
  • Date: 2011-04-13 21:07:45 UTC
  • mfrom: (2252.1.29 program-options)
  • mto: This revision was merged to the branch mainline in revision 2277.
  • Revision ID: kalebral@gmail.com-20110413210745-2e3tukhwa72zggcz
Merge Olaf - Refactor Program Options usage

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
ALTER SCHEMA changes the definition of a schema.
5
5
 
6
 
You must own the schema to use ALTER SCHEMA. To rename a schema you must also have the CREATE privilege for the database. To alter the owner, you must also be a direct or indirect member of the new owning role, and you must have the CREATE privilege for the database.::
 
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
7
12
 
8
13
        ALTER SCHEMA name RENAME TO new_name
9
14
        ALTER SCHEMA name OWNER TO new_owner
14
19
 
15
20
new_name
16
21
 
17
 
    The new name of the schema. The new name cannot begin with pg_, as such names are reserved for system schemas. 
 
22
    The new name of the schema.
18
23
 
19
24
new_owner
20
25
 
21
26
    The new owner of the schema. 
22
27
 
23
28
 
24
 
See Also:
 
29
.. seealso::
25
30
 
26
 
* CREATE SCHEMA
27
 
* DROP SCHEMA
 
 
b'\\ No newline at end of file'
 
31
   :doc:`create_schema` and :doc:`drop_schema`