MariaDB root@(none):dyw> select * from tbl; +----+---------+--------+-----------------+ | id | title | author | submission_date | +----+---------+--------+-----------------+ | 1 | c++ | peter | 2023-03-30 | | 2 | Linux | linux | 2023-01-30 | | 3 | Mariadb | dywang | 2023-03-30 | +----+---------+--------+-----------------+ 3 rows in set Time: 0.053s
MariaDB root@(none):dyw> delete from tbl where id=3; You're about to run a destructive command. Do you want to proceed? (y/n): y Your call! Query OK, 1 row affected Time: 0.048s
MariaDB root@(none):dyw> select * from tbl; +----+-------+--------+-----------------+ | id | title | author | submission_date | +----+-------+--------+-----------------+ | 1 | c++ | peter | 2023-03-30 | | 2 | Linux | linux | 2023-01-30 | +----+-------+--------+-----------------+ 2 rows in set Time: 0.017s