By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version() |
|---|
| 8.0.30 |
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `deleted_at` IS NULL' at line 2
Records: 0 Duplicates: 0 Warnings: 0
| SLEEP(1) |
|---|
| 0 |
| SLEEP(1) |
|---|
| 0 |
| SLEEP(1) |
|---|
| 0 |
| id | created_at | updated_at | deleted_at | name | metadata | deleted_row |
|---|---|---|---|---|---|---|
| 1 | 2023-04-19 08:38:30 | 2023-04-19 08:38:30 | null | name1 | null | 0 |
| 2 | 2023-04-19 08:38:31 | 2023-04-19 08:38:31 | null | name2 | null | 0 |
| 3 | 2023-04-19 08:38:32 | 2023-04-19 08:38:32 | null | name3 | null | 0 |
| 4 | 2023-04-19 08:38:33 | 2023-04-19 08:38:33 | null | name4 | null | 0 |
Rows matched: 2 Changed: 2 Warnings: 0
| id | created_at | updated_at | deleted_at | name | metadata | deleted_row |
|---|---|---|---|---|---|---|
| 1 | 2023-04-19 08:38:30 | 2023-04-19 08:38:30 | null | name1 | null | 0 |
| 2 | 2023-04-19 08:38:31 | 2023-04-19 08:38:31 | 2023-04-19 08:38:33 | name2 | null | 1 |
| 3 | 2023-04-19 08:38:32 | 2023-04-19 08:38:32 | null | name3 | null | 0 |
| 4 | 2023-04-19 08:38:33 | 2023-04-19 08:38:33 | 2023-04-19 08:38:33 | name4 | null | 1 |
| id | created_at | updated_at | deleted_at | name | metadata | deleted_row |
|---|---|---|---|---|---|---|
| 1 | 2023-04-19 08:38:30 | 2023-04-19 08:38:30 | null | name1 | null | 0 |
| 3 | 2023-04-19 08:38:32 | 2023-04-19 08:38:32 | null | name3 | null | 0 |
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | customer_group | null | ref | IDX_d12ecf48-302c-4292-8c8d-d2cc7c8149f9 | IDX_d12ecf48-302c-4292-8c8d-d2cc7c8149f9 | 2 | const | 4 | 100.00 | null |