| 1 |
create or replace sequence t1 engine=maria; |
| 2 |
show create sequence t1; |
| 3 |
Table Create Table |
| 4 |
t1 CREATE SEQUENCE `t1` start with 1 minvalue 1 maxvalue 9223372036854775806 increment by 1 cache 1000 nocycle ENGINE=Aria |
| 5 |
show create table t1; |
| 6 |
Table Create Table |
| 7 |
t1 CREATE TABLE `t1` ( |
| 8 |
`next_not_cached_value` bigint(21) NOT NULL, |
| 9 |
`minimum_value` bigint(21) NOT NULL, |
| 10 |
`maximum_value` bigint(21) NOT NULL, |
| 11 |
`start_value` bigint(21) NOT NULL COMMENT 'start value when sequences is created or value if RESTART is used', |
| 12 |
`increment` bigint(21) NOT NULL COMMENT 'increment value', |
| 13 |
`cache_size` bigint(21) unsigned NOT NULL, |
| 14 |
`cycle_option` tinyint(1) unsigned NOT NULL COMMENT '0 if no cycles are allowed, 1 if the sequence should begin a new cycle when maximum_value is passed', |
| 15 |
`cycle_count` bigint(21) NOT NULL COMMENT 'How many cycles have been done' |
| 16 |
) ENGINE=Aria SEQUENCE=1 |
| 17 |
select * from t1; |
| 18 |
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count |
| 19 |
1 1 9223372036854775806 1 1 1000 0 0 |
| 20 |
create or replace sequence t1 engine=archive; |
| 21 |
ERROR HY000: Table storage engine 'ARCHIVE' does not support the create option 'SEQUENCE' |
| 22 |
show create table t1; |
| 23 |
ERROR 42S02: Table 'test.t1' doesn't exist |