~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/create_schema.rst

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
CREATE SCHEMA
2
 
==============
3
 
 
4
 
CREATE SCHEMA enters a new schema into the current database. The schema name used must be distinct from the name of any existing schema.
5
 
 
6
 
.. code-block:: mysql
7
 
 
8
 
   CREATE SCHEMA [IF NOT EXISTS] schema_name
9
 
     [engine_options] ...
10
 
 
11
 
engine_options
12
 
--------------
13
 
 
14
 
You can specify the storage engine to use for creating the schema.
15
 
 
16
 
::
17
 
 
 
2
=============
 
3
 
 
4
CREATE SCHEMA [IF NOT EXISTS] schema_name
 
5
  [engine_options] ...
 
6
 
 
7
engine_options:
18
8
    engine_option [[,] engine_option] ...
19
9
 
20
 
engine_option
21
 
-------------
22
 
 
23
 
There are default settings for character sets and collations at four levels: server, database, table, and column. The COLLATE clause specifies the default database collation.
24
 
 
25
 
::
26
 
 
 
10
engine_option:
27
11
  [DEFAULT] COLLATE = collation_name
28
12
  { engine_specific }