~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/alter_schema.rst

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

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`