By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version() |
|---|
| 8.0.30 |
Records: 6 Duplicates: 0 Warnings: 0
Records: 11 Duplicates: 0 Warnings: 0
| ym | iD | dt |
|---|---|---|
| 202301 | 2 | 2023-01-01 |
| 202301 | 1 | 2023-01-01 |
| 202302 | 3 | 2023-02-01 |
| 202302 | 2 | 2023-01-01 |
| 202302 | 1 | 2023-01-01 |
| 202303 | 6 | 2023-03-03 |
| 202303 | 5 | 2023-03-02 |
| 202303 | 4 | 2023-03-01 |
| 202303 | 3 | 2023-02-01 |
| 202303 | 2 | 2023-01-01 |
| 202303 | 1 | 2023-01-01 |
| Table | Create Table |
|---|---|
| t1 | CREATE TABLE `t1` ( `ym` bigint unsigned DEFAULT NULL, `iD` int NOT NULL DEFAULT '0', `dt` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci |