By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Table | Create Table |
---|---|
bar | CREATE TABLE `bar` ( `id` int DEFAULT NULL, KEY `id` (`id`), CONSTRAINT `bar_ibfk_1` FOREIGN KEY (`id`) REFERENCES `foo` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci |
Table | Create Table |
---|---|
baz | CREATE TABLE `baz` ( `id` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci |