Home > Database > Mysql Tutorial > body text

What are the characteristics of the Memory storage engine in mysql?

WBOY
Release: 2023-06-02 20:48:16
forward
1561 people have browsed it

1. Each table of the Memory table can have up to 32 indexes.

16 columns per index, and a key length of 500 bytes.

2. The storage engine executes HASH and BTREE micronization.

3. There can be non-unique key values ​​in the table.

4. The table adopts a fixed record length format.

5. BLOB or TEXT columns are not supported.

Example

mysql> CREATE TABLE lookup
        (id INT, INDEX USING HASH (id))
       ENGINE = MEMORY;
 
mysql> CREATE TABLE lookup
        (id INT, INDEX USING BTREE (id))
       ENGINE = MEMORY;
Copy after login

The above is the detailed content of What are the characteristics of the Memory storage engine in mysql?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template