mirror of
https://github.com/MariaDB/server.git
synced 2025-11-27 05:41:41 +03:00
11 lines
392 B
Plaintext
11 lines
392 B
Plaintext
CREATE TABLE t1(a INT, b VARCHAR(10), INDEX(a))ENGINE=InnoDB
|
|
PARTITION BY RANGE(a)
|
|
(PARTITION pa VALUES LESS THAN (3),
|
|
PARTITION pb VALUES LESS THAN (5));
|
|
CREATE TABLE t2(a INT, FOREIGN KEY(a) REFERENCES t1(a))ENGINE=INNODB
|
|
PARTITION BY RANGE(a)
|
|
(PARTITION pa VALUES LESS THAN (2),
|
|
PARTITION pb VALUES LESS THAN (4));
|
|
ERROR HY000: Partitioned tables do not support FOREIGN KEY
|
|
DROP TABLE t1;
|