Defining MariaDB Sequences

The following properties are applicable to a MariaDB Sequence object.

Tab

Property

Description

Additional Information

General Starting Value Specifies the first value of the sequence  
Increment By Specifies the interval between consecutive values of the sequence  
Minimum Value Specifies the minimum value of the sequence  
Maximum Value Specifies the maximum value of the sequence  
Cycle Values Specifies whether the sequence continues to generate values after it reaches its maximum or minimum value  
Cache Values Specifies whether the database manager generates and stores sequence values in memory Setting this to True enables the Cache_Capacity field.
Cache_Capacity Specifies the maximum number of sequence values that can be stored in the memory  

Table Options

Engine Specifies the storage engine of the table  
Auto Increment Specifies the initial value of the auto-increment primary key  
Average Row Length Specifies the average row size  
Character Set Specifies the default character set to be used  
Checksum Specifies the table checksum option  
Collation Specifies the default collation type  
Connection String Specifies a server name or a connection string for a Spider, CONNECT, Federated or FederatedX tables  
Data Directory Specifies the data directory of the table to store its data  
Delay Key Write Specifies whether the delay_key_write variable is on Setting this to 1 indicates that when table data is modified, indexes are not updated until the table is closed.
Encrypted Specifies the encryption status of the table  
Encryption Key Id Specifies the encryption key  
Index Directory Specifies the index directory of the table to store its indexes  
Insert Method Specifies in which underlying table the new rows are inserted Note: This option is used only with MERGE tables
Key Block Size Specifies the size of key blocks in the storage engine, in bytes or kilobytes  
Max Rows Specifies the maximum number of rows to be stored in the storage engine  
Min Rows Specifies the minimum number of rows to be stored in the storage engine  
Pack Keys Specifies whether indexes should be compressed  
Page Checksum Specifies whether indexes and data must use page checksum  
Page Compressed Specifies whether page compression is enabled  
Page Compression Level Specifies the compression level Valid values are 1 (best speed) through 9 (best compression)
Password Specifies the password of the table  
Row Format Specifies the row format of the data file  
Sequence Specifies whether the table is a sequence  
Stats Auto Recalculation Specifies whether persistent statistics should be automatically recalculated

Default: Value depends on system variables

0: statistics will be recalculated only when ANALYZE TABLE is run

1: statistics will be recalculated when more than 10% of the data has changed

Stats Persistent Specifies whether the statistics created by ANALYZE TABLE remain on disk Default: Value depends on system variables

0: Not on disk

1: On disk

Stats Sample Pages Specifies the number of pages used to sample index statistics  
Transactional Specifies whether the table is transactional  
Union Specifies a comma-separated list of tables that the new table will access

This is used while creating a MERGE table.

For example, (t1, t2, t3)