ColumnStore Create Table

You are viewing an old version of this article. View the current version here.

A database consists of tables that store user data. You can create multiple columns with the create table statement. The data type follows the column name when adding columns.

Notes:

  • ColumnStore tables should not be created in the mysql, information_schema or test databases.
  • ColumnStore stores all object names in lower case.
  • CREATE TABLE AS SELECT is not supported, and will instead create the table in the default storage engine (XtraDB).
  • For maximum compatibility with external tools ColumnStore will accept the following table attributes:
    • MIN_ROWS
    • MAX_ROWS
    • AUTO_INCREMENT
    • DEFAULT CHARSET
    • COMMENT

All of these are ignored by ColumnStore.The following statement creates a table called orders with two columns: orderkey with datatype integer and customer with datatype varchar:

CREATE TABLE orders (orderkey INTEGER, customer VAR-CHAR(45)) ENGINE=ColumnStore

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.