By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| Table | Create Table |
|---|---|
| test | CREATE TABLE `test` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), CONSTRAINT `test_ibfk_1` FOREIGN KEY (`id`) REFERENCES `test` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci |
| id |
|---|
| 1 |