HomeMogDBMogDB StackUqbar
v5.0

Documentation:v5.0

Supported Versions:

Other Versions:

CREATE TABLESPACE

Function

Creates a tablespace in a database.

Precautions

  • This section describes only the new syntax of Dolphin. The original syntax of MogDB is not deleted or modified.

Syntax

CREATE TABLESPACE tablespace_name
    tablespace_details;

In the preceding information, tablespace_details is as follows:

[ OWNER user_name ] [RELATIVE] LOCATION 'directory' [ MAXSIZE 'space_size' ] [with_option_clause] [ ENGINE [=] engine_name ]
| ADD DATAFILE 'directory' [ ENGINE [=] engine_name ]

Parameter Description

  • ENGINE [=] engine_name

    Specifies the storage engine. Currently, it is used only for syntax and has no actual purpose.

Examples

--Run the ADD DATAFILE syntax to create a tablespace.
CREATE TABLESPACE t_tbspace ADD DATAFILE 'my_tablespace' ENGINE = test_engine;
CREATE TABLESPACE
Copyright © 2011-2024 www.enmotech.com All rights reserved.