带着上面的疑问,我们去看下表定义,首先是 b 表 metadata_tablebasicinfo,然后是 r 表dataquality_rule,最后是 t 表 dataquality_taskconfigurationhistory CREATE TABLE `metadata_tablebasicinfo` (
`TableGuid` varchar(50) NOT NULL,
`SqlTableName` varchar(50) DEFAULT NULL,
.......
PRIMARY KEY (`TableGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
CREATE TABLE `dataquality_rule` (
`RuleGuid` varchar(50) NOT NULL,
`ModelGuid` varchar(50) DEFAULT NULL,
.......
PRIMARY KEY (`RuleGuid`),
KEY `idx_top` (`RuleGuid`,`Tableguid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
CREATE TABLE `dataquality_taskconfigurationhistory` (
`RowGuid` varchar(50) NOT NULL,
`ModelGuid` varchar(50) DEFAULT NULL,
.......
PRIMARY KEY (`RowGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4