mirror of
https://github.com/MariaDB/server.git
synced 2025-05-11 13:21:44 +03:00
19 lines
601 B
Plaintext
19 lines
601 B
Plaintext
drop table if exists graph;
|
|
CREATE TABLE graph (
|
|
latch SMALLINT UNSIGNED NULL,
|
|
origid BIGINT UNSIGNED NULL,
|
|
destid BIGINT UNSIGNED NULL,
|
|
weight DOUBLE NULL,
|
|
seq BIGINT UNSIGNED NULL,
|
|
linkid BIGINT UNSIGNED NULL,
|
|
KEY (latch, origid, destid) USING HASH,
|
|
KEY (latch, destid, origid) USING HASH
|
|
) ENGINE=OQGRAPH;
|
|
SET binlog_format = row;
|
|
insert into graph(origid, destid) values (1,3), (3,1);
|
|
SET binlog_format = statement;
|
|
insert into graph(origid, destid) values (3,4), (4,3);
|
|
SET binlog_format = mixed;
|
|
insert into graph(origid, destid) values (3,5), (5,3);
|
|
drop table graph;
|